google-maps-api-3

setTimeout marker animation - nothing seems to work

扶醉桌前 提交于 2020-01-06 07:53:35
问题 Thanks for reading this ... I've been searching and experimenting for 3 days trying to solve a pretty basic javascript issue. I'm creating a Google map with 45 markers. The markers: are clustered using the MarkerClusterer utility can be clicked to open an infowindow (each one displays a different image) all "drop" nicely into place when the page loads. So far so good. The problem is applying a "setTimeout" function to drop the markers sequentially (instead of all at once). I've tried a dozen

API for locations within a certain radius from database

孤街浪徒 提交于 2020-01-06 07:11:37
问题 I want to build a tool which allows me to search and locate my database (longitude and latitude users ), within a certain radius. i already have a googlemaps API key. Is there a ready made tool or API ?. Any tips or suggestions? here is my laravel code, so far i have fetched my db users as markers in map. #map { height: 50%; } html, body { height: 100%; margin: 0; padding: 0; } </style> <div id="map"></div> <script> key=YOUR_API_KEY&libraries=places"> let users = ; console.log(users);

API for locations within a certain radius from database

和自甴很熟 提交于 2020-01-06 07:11:09
问题 I want to build a tool which allows me to search and locate my database (longitude and latitude users ), within a certain radius. i already have a googlemaps API key. Is there a ready made tool or API ?. Any tips or suggestions? here is my laravel code, so far i have fetched my db users as markers in map. #map { height: 50%; } html, body { height: 100%; margin: 0; padding: 0; } </style> <div id="map"></div> <script> key=YOUR_API_KEY&libraries=places"> let users = ; console.log(users);

How to add KMZ file in drupal 7?

我的梦境 提交于 2020-01-06 07:10:14
问题 I have got KMZ file and I don't know how to show it from drupal. So, I research and found those codes. function CoverageMap() { var map = new google.maps.Map(document.getElementById('coverageMap'), { zoom: 15, center: {lat: 16.800915763233845, lng: 96.1567211141123} }); var kmzLayer = new google.maps.KmlLayer('http://test.dev/sites/all/themes/bootstrap_business/coverage/ygn_mdy.kmz'); kmzLayer.setMap(map); } I put this code and save the file Coverage.js . But, the file location is static

android studio failed for task ':app:processDebugGoogleServices'

守給你的承諾、 提交于 2020-01-06 06:07:17
问题 when i want to build my project, an error pops up and It says: Exectuion failed for task 'app:processDebugGoogleServices'. This is the full Error: Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.0.4

initMap is not a function in using google maps API

扶醉桌前 提交于 2020-01-06 05:47:16
问题 <html> <script src="https://maps.googleapis.com/maps/api/jskey=YOUR_API_KEY&callback=initMap"> </script> <body onload="showMap()"> <div id="map"></div> <script type="text/javascript"> function showMap() { console.log('at maps'); var map = new google.maps.Map(document.getElementById('map'), { zoom: 10, center: { lat: -34.397, lng: 150.644 } }); } </script> </body> </html> I'm new to scripting . This is my code to display the map. But it throws an uncaught error "initMap is not a function". Can

Google Maps API: Requesting any place labels given longitude and latitude?

南笙酒味 提交于 2020-01-06 04:47:06
问题 I am working on an iPhone map application and wanted to know whether it was possible to request any labels visible on Google Maps given a longitude/latitude and radius? For example if I gave the following location to this Google Maps API, I would get back McCullough Hall, Moore Hall, etc. The list would be any place labels visible on the map (doesn't have to be just restaurants, businesses). If this is possible can you direct me to where I can learn more about this. If this isn't possible,

google map polyline dashed and double lines

坚强是说给别人听的谎言 提交于 2020-01-06 03:41:15
问题 I have a google map polyline sample here with four coordinates. I drawn the dashed line using symbol property as, var lineSymbol = { path: 'M 0,-1 0,1', strokeOpacity: 1, strokeWeight: 2, scale: 3 }; var lineCoordinates = [ new google.maps.LatLng(22.291, 153.027), new google.maps.LatLng(18.291, 153.027), new google.maps.LatLng(15.291, 153.027), new google.maps.LatLng(11.291, 153.027)]; var line = new google.maps.Polyline({ path: lineCoordinates, strokeOpacity: 0, icons: [{ icon: lineSymbol,

MarkerWithLabel show only last value in the google map api when using Geocoder()

一世执手 提交于 2020-01-06 03:28:25
问题 when i add marker with MarkerWithLabel it shows the differnent markers,but the value associated with contains the last value from the data..like in each marker when writing code labelContent:building.value,and title:building.Country_Name, it shows the last country name in each maker position like Nepal it shows the last value from data like..63 in this condition. I have below json format data. var recipient_country = [{"Country_Name": "MYANMAR", "value": 123}, {"Country_Name": "MONGOLIA",

Google maps KML polygons

≯℡__Kan透↙ 提交于 2020-01-06 02:59:12
问题 I have successfully imported a kml file to a Google map so that it displays real estate boundaries. I have also used the tutorial at https://google-developers.appspot.com/maps/documentation/javascript/examples/polygon-arrays to draw simple polygons and have them click-able. However, I don't know how to make the polygons created by the kml file click-able. The polygons on the kml are quite complex shapes and consist of many coordinates to form the polygons. The example below is just for 1 real