google-maps-api-3

Google Maps autoComplete with material design

旧街凉风 提交于 2019-12-21 12:17:49
问题 I have a question about implementing Google Maps auto complete function in material design: <md-autocomplete flex="" md-no-cache="ctrl.noCache" md-selected-item="ctrl.selectedItem" md-search-text="ctrl.searchText" md-items="item in ctrl.querySearch(ctrl.searchText)" md-item-text="item.display" md-floating-label="Favorite state"> <span md-highlight-text="ctrl.searchText">{{item.display}}</span> </md-autocomplete> Angular Material autocomplete | Google Maps autocomplete How can I use material

Google Maps API V3 Usage Limits is Per Website Visitor or Per Web Server?

扶醉桌前 提交于 2019-12-21 08:15:44
问题 I'm confused over whether the API usage limits of 2500 geocoding requests per day ( http://code.google.com/apis/maps/documentation/geocoding/#Limits ) and 25,000 Javascript maps per day ( http://code.google.com/apis/maps/faq.html#usagelimits ) are referring to the requests generated by the website visitor or by the web server serving the page that contains the map or makes the geocoding requests? 回答1: Last time I checked (2 months ago) the geocoding requests where based per IP, so if you or a

Google Maps API v3 - GIcon is not defined

我是研究僧i 提交于 2019-12-21 07:56:33
问题 I know they are some issues from v2 to v3 what can i do here to fix it? GIcon is not supported by v3? // Google-Map icon object var gMapIcon = new GIcon(G_DEFAULT_ICON); //change to new google.maps.MarkerImage();??? // does icon exist if ( mapElements[lMapElementIndex]['icon'].toString().length > 0) { gMapIcon.image = html_entity_decode(mapElements[lMapElementIndex]['icon']); gMapIcon.shadow = ""; iconHeight = mapElements[lMapElementIndex]['iconheight']; iconWidth = mapElements

google.maps.places.Autocomplete language output

淺唱寂寞╮ 提交于 2019-12-21 07:53:23
问题 I am using google.maps.places.Autocomplete object and always get results in Ukrainian language. I am loading library like that http://maps.google.com/maps/api/js?sensor=true&libraries=places&language=ru-RU how to pass parameters to autocomplete language? var autocomplete = new google.maps.places.Autocomplete($("#google_places_ac")[0], {}); google.maps.event.addListener(autocomplete, 'place_changed', function() { var place = autocomplete.getPlace(); $scope.location = place.formatted_address; /

google.maps.places.Autocomplete language output

笑着哭i 提交于 2019-12-21 07:51:23
问题 I am using google.maps.places.Autocomplete object and always get results in Ukrainian language. I am loading library like that http://maps.google.com/maps/api/js?sensor=true&libraries=places&language=ru-RU how to pass parameters to autocomplete language? var autocomplete = new google.maps.places.Autocomplete($("#google_places_ac")[0], {}); google.maps.event.addListener(autocomplete, 'place_changed', function() { var place = autocomplete.getPlace(); $scope.location = place.formatted_address; /

google.maps.geometry.spherical error

拟墨画扇 提交于 2019-12-21 06:57:21
问题 I am having some troubles using the geometry at google maps. I am getting the following error: "Unable to get property 'spherical' of undefined or null reference." This is some code from w3c with some additions of mine. var x=new google.maps.LatLng(52.395715,4.888916); var stavanger=new google.maps.LatLng(58.983991,5.734863); var amsterdam=new google.maps.LatLng(52.395715,4.888916); var london=new google.maps.LatLng(51.508742,-0.120850); function initialize() { var mapProp = { center:x, zoom

Display Text Label Along a Polyline

为君一笑 提交于 2019-12-21 06:30:04
问题 I am wondering how one might add text that outputs along the edge of a polyline in Google Maps. I can't find any documentation on how to do this, yet have seen it done before. Also the new Google Maps ski runs have this text affect! example: http://goo.gl/maps/pbokL Currently I use the MarkerWithLabel libary to add rectangular labels to the start of a polyline. http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.8/docs/reference.html This library doesn't have the

android turn GPS On & Off Programmatically in 2.2?

眉间皱痕 提交于 2019-12-21 06:26:47
问题 i am using GPS in My application and i want to turn GPS on and off Programmatically to save power how can i do it :( this is for turn off i need the turn on please private void turnGPSOnOff(){ String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED); if(!provider.contains("gps")){ final Intent poke = new Intent(); poke.setClassName("com.android.settings", "com.android.settings.widget.SettingsAppWidgetProvider"); poke.addCategory(Intent

How to export Google Map to Image including custom markers?

余生长醉 提交于 2019-12-21 06:18:11
问题 As suggested on this answer, I am using html2canvas library to export a Google Map to a image. I am working on AngularJS. This is the code I am using: $scope.shareMap = function(){ var element = $("#mapDiv"); html2canvas(element, { useCORS: true, onrendered: function(canvas) { var dataUrl= canvas.toDataURL("image/png"); // DO SOMETHING WITH THE DATAURL // Eg. write it to the page document.write('<img src="' + dataUrl + '"/>'); } }); }; The thing is, it is not exporting my dynamically

How to export Google Map to Image including custom markers?

房东的猫 提交于 2019-12-21 06:18:04
问题 As suggested on this answer, I am using html2canvas library to export a Google Map to a image. I am working on AngularJS. This is the code I am using: $scope.shareMap = function(){ var element = $("#mapDiv"); html2canvas(element, { useCORS: true, onrendered: function(canvas) { var dataUrl= canvas.toDataURL("image/png"); // DO SOMETHING WITH THE DATAURL // Eg. write it to the page document.write('<img src="' + dataUrl + '"/>'); } }); }; The thing is, it is not exporting my dynamically