maps

google maps api, The provided API key is invalid

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is my first time posting a question on stack overflow, really hoping you guys can help. I am trying to use the google maps geocodeing api for the first time and cannot get it to work. The url format I am using is: https://maps.googleapis.com/maps/api/geocode/json?address=LS2+9AQ&sensor=false&key=[MY_API_KEY] In this case I am looking up the uk postcode: LS2 9AQ from a chrome browser. The url does work when I don't use my api key but the limit on the number of allowed calls without the key is too low for my needs. I am not yet using this

Bing Maps API v8 - pushpin SVG URI image

匿名 (未验证) 提交于 2019-12-03 02:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to build a custom bing maps v8 API pushpin combining text and a small uri data image, but I get an 'Uncaught InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.' error on the browser console. Any ideas? MapOptions = { credentials: 'mycredentials', mapTypeId: Microsoft.Maps.MapTypeId.road, zoom: 10, showMapTypeSelector: true, enableInertia: false, enableClickableLogo: false, disableKeyboardInput: true, navigationBarMode: navigationBarMode.minified,

Google's Places API and JQuery request - Origin http://localhost is not allowed by Access-Control-Allow-Origin

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I doing some testing for a project I got in mind which involves using places nearby. So I went with the big guy and started messing around with Google's Places Api. I'm using leaflet with openstreet tiles for my map. Now everything is fine until I try to use the dang thing. var lat = coords.lat; var lng = coords.lng; var apiUrl = "https://maps.googleapis.com/maps/api/place/nearbysearch/json"; var data = { key: 'AIzaSyBl8bmE8kQT7RjoXhP6k2yDti44h9-fSUI', location: lat+','+lng, radius: '10000', sensor: 'false', rankby: 'prominence', types: 'bar

Put pin on Google Map

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to redirect user to Google Maps page and put some pin on defined location. The problem is that you could easily center map on some point with simple request: http://maps.google.com/maps?hl=en&ll=49.901711,32.508545&spn=5.959342,16.907959&z=7 But how to set a pin with such request ? 回答1: You can do this with My Maps. Create or open a map. Click Edit to enter editing mode. Click the blue marker. Your cursor changes into a placemark icon with an "X" crosshairs. The crosshairs indicate where the placemark will fall. Move the cursor to the

Remove HeatmapLayer from google maps

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using the HeatmapLayer api https://developers.google.com/maps/documentation/javascript/layers#JSHeatMaps I generate the heatmap like this: heatmap = new google.maps.visualization.HeatmapLayer({ data: heatmapData, radius: 50 }); heatmap.setMap(google_map); When i want to display another heat map using the same function as above (i'm using ajax and i have new markers to display, so i need to change the heatmap too) the heat map layer stays on the map and in this case i have 2 overlapping heatmaps on my map. How can i remove the current

show just the street address in google.maps.event.addListener()

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have written a small function that will get the user address using the google.maps.event.addListener() . Here is the jsFiddle . Everything is exactly what I want, apart from when the user finishes typing and focus out from the street field, I just want the street address in the input . At the moment it looks like this: But I want it to be like this: Thanks already for help. Cheers. 回答1: Use a short delay to apply streetAddress setTimeout(function(){$('#address').val(streetAddress);},50); 回答2: The above solution works great to autocomplete

google maps V2 “Unfortunately app has Stopped”

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I just begin to learn Android .take 4 days to try work maps view but not work .that error Unfortunately the app has stopped 回答1: There are some things you need to check: 1. Is the SHA1 fingerprint is ok that you have registered in google api console .For how to find it , you can find it here 2. The generated api_key must be same with the menifest . 3. Name of the app in api console must be same with the name of app in strings.xml . 4. meta-data must have to be included in menifest . <meta-data android:name="com.google.android.gms.version"

couldn&#039;t run Google Maps Android API Utility Demo

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i'm having problems to run the Google Maps Android API Utility Demo, it shows this error: 04-03 16:32:37.397: E/dalvikvm(2592): Could not find class 'com.google.maps.android.utils.demo.ClusteringDemoActivity', referenced from method com.google.maps.android.utils.demo.MainActivity.onCreate 04-03 16:32:37.452: E/AndroidRuntime(2592): FATAL EXCEPTION: main 04-03 16:32:37.452: E/AndroidRuntime(2592): java.lang.NoClassDefFoundError: com.google.maps.android.utils.demo.ClusteringDemoActivity 04-03 16:32:37.452: E/AndroidRuntime(2592): at com.google

Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under &#039;Copy Bundle Resources

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I build a GoogleMaps SDK for iOS,these error occurred. *** Terminating app due to uncaught exception 'GMSException', reason: 'Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources'' but,GoogleMaps.framework is in copy bundle resources.so,I'm confused.please tell me cause of this problem. 回答1: The instructions are kinda lacking. I hope this helps... Launch Xcode (easy) Drag the GoogleMaps.framework bundle to the Frameworks group of your project. When prompted, select Copy items into

Google maps v2 on android devices with minSDK below 11

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: i have problem with this line when I create project which use Google maps API v2. GoogleMap map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)) .getMap(); It's says that I need to set minSDK to be minimum 11, but I want to use this application also on devices with android minSDK 8 (2.3.3). Any ideas? Or simply: How I can set google maps API v2 to be compatible with devices with minSDK 8. Thanks 回答1: Use SupportMapFragment from a FragmentActivity , instead of MapFragment from an Activity . To use fragments on