google-maps-api-3

Google Maps API error: MissingKeyMapError

喜夏-厌秋 提交于 2019-12-25 18:13:29
问题 I'm getting this error only in the web hosted version of my website and I'm using the Key , It works fine in local! Help please! <script async src="http://maps.googleapis.com/maps/api/js?=AIzaSyDudFyTGhbU2CvJtJNxdfkPcJfRQnZ1pbTg&libraries=geometry"> 回答1: the API key is not being assigned because you are missing the GET parameter key in the url, in this case '?key=' <script async src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDudFyTGhbU2CvJtJNxdfkPcJfRQnZ1pbTg&libraries=geometry"> If it

Google Maps API error: MissingKeyMapError

一笑奈何 提交于 2019-12-25 18:12:34
问题 I'm getting this error only in the web hosted version of my website and I'm using the Key , It works fine in local! Help please! <script async src="http://maps.googleapis.com/maps/api/js?=AIzaSyDudFyTGhbU2CvJtJNxdfkPcJfRQnZ1pbTg&libraries=geometry"> 回答1: the API key is not being assigned because you are missing the GET parameter key in the url, in this case '?key=' <script async src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDudFyTGhbU2CvJtJNxdfkPcJfRQnZ1pbTg&libraries=geometry"> If it

Google maps APIs to return place' type based on latitude & longitude

倖福魔咒の 提交于 2019-12-25 17:59:27
问题 I am trying to build an application in which I need to retrieve location's type based on latitude and longitude. I tried using google's places API but not getting satisfied results. For eg, if I want to know if the user searches for SFSU, it should be stored as 'university'. I can get its latitude/longitude from geocoding APIs. https://maps.googleapis.com/maps/api/geocode/json?address=SFSU&key=YOUR_KEY But from places API, I cannot get the exact type, I mostly get it as street or

make geocoder to call synchronously

一笑奈何 提交于 2019-12-25 17:38:35
问题 I have two hidden fields which contain latitude value values and longitude values having id- #latitude_val and #longitude_val .I will set variable chicago with a initial latitude and longitude.If above two fields are null,I will pass the place name (here statically for checking )and locate the marker by the following code. function initialize() { chicago = new google.maps.LatLng(51.508742,-0.120850);//default value if(($("#latitude_val").val().length >3) || ($("#longitude_val").val().length>3

Marker Cluster Links with Google Maps

自闭症网瘾萝莉.ら 提交于 2019-12-25 17:38:19
问题 So I'm making a real estate website, and the client has asked that all properties can be viewed on a map. I thought the best way to do this to avoid it looking too cluttered would be to use Marker Clusters. However, I need each individual marker to link to that specific properties page. I'm not too experienced with Javascript so I'm struggling to crack this one. Right now, the map is completely unresponsive (You cant move or zoom the map) and no markers are displayed. This is my code so far,

Google Maps Draw Tool outputting polygon coordinates

最后都变了- 提交于 2019-12-25 17:16:01
问题 I have searched SO for this answer and I haven't been able to come up with a definitive answer as of yet... Here's the problem: When I try to write my polygon coordinates to console it works if the tool chosen is a polygon. However when I use Square or Circle, I get the error e.overlay.getPath is not a function With my current code, I am thinking that the else should catch the square and circle. Obviously I am mistaken ... Here is what I have: if (e.type == google.maps.drawing.OverlayType

Google Maps API: Heatmap & Search - Cannot merge into single map

≯℡__Kan透↙ 提交于 2019-12-25 17:07:34
问题 I'm trying to work with Google maps and Twitter API's to generate a city searchable heatmap of a certain topic/keyword from twitter. I have the heatmap working and the search map working individually, but cannot find anything any documentation on how to merge the two maps so one map has a heatmap that can search by city. If you delete the &callback=initAutocomplete in: script async defer src="https://maps.googleapis.com/maps/api/js?libraries=visualization,places&callback=initMap&callback

How to change the image for a set of map markers

。_饼干妹妹 提交于 2019-12-25 16:52:17
问题 I am creating a map with 5 groups of markers. I have all the coordinates in place and the markers appear on the map, but I am not sure how to change the image for each group. I have looked at other examples, but they have not worked for me. If there is a way to change the image for either the group of coordinates or each individual coordinate, I would appreciate the help. Here is what I have so far: <script type="text/javascript"> function initialize() { //add map, the type of map var map =

Measure complete time of adding (showing) an array of markers to google maps v3

隐身守侯 提交于 2019-12-25 16:50:27
问题 I am trying to measure the COMPLETE time (including adding the objects to the DOM) for adding a number of markers to a google map instance, but it does not really work the way I expected. Here is the function I have: function addMarkers(count) { // map is the google.maps.Map object var bounds = map.getBounds(); var northEast = bounds.getNorthEast(); var southWest = bounds.getSouthWest(); var minLat = Math.min(northEast.lat(), southWest.lat()); var maxLat = Math.max(northEast.lat(), southWest

XSLT, Doctype and Google-Map v3 not working

强颜欢笑 提交于 2019-12-25 16:49:02
问题 I'm trying to include a GoogleMap v3 (everything was okay with v2) in my HTML pages generated with XLS Transformations. My JS code comes from this page. Basically, the map works correctly when everything is in plain HTML, as per the example, however when I try to include it in the XSL stylesheet, Firefox (v3.6) complains and doesn't want to load anything: Error: uncaught exception: [Exception... "Operation is not supported" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)"