Integrating angularjs ui.map with geo location api -


i using http://jsfiddle.net/xspaa/371/

//add requried module 'angular-ui' dependency angular.module('maptesting', ['ui.map','ui.event']);  function mapctrl($scope) {     var ll = new google.maps.latlng(45, -73);     $scope.mapoptions = {         center: ll,         zoom: 8,         maptypeid: google.maps.maptypeid.roadmap     };      //markers should added after map loaded     $scope.onmapidle = function() {         if ($scope.mymarkers === undefined){                 var marker = new google.maps.marker({                 map: $scope.mymap,                 position: ll             });             $scope.mymarkers = [marker, ];         }     };      $scope.markerclicked = function(m) {         window.alert("clicked");     };  } 

plunker show google map. need show specific location map user enter text box.

how can it?

do need use geo location api?

can 1 give sample code or plunker?

below working example :

http://www.victorshi.com/blog/post/use-geolocation-api-with-angularjs

example

also check below url:

http://www.benfarrell.com/2013/11/05/some-geolocation-and-google-mapping-services-in-angularjs/

google location service

http://jsfiddle.net/mrajcok/peq6x/

directive 'googleplaces' 

Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -