maps

Google Maps Android - Only show markers below a certain zoom level

匿名 (未验证) 提交于 2019-12-03 02:42:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been working on this for the last few weeks with no working answer. Help is appreciated. I want to only show markers below a certain zoom level. This is not only to prevent lag, but also to prevent clustering of markers. Marker clustering isn't what I'm looking for. Please help! Here's my java code so far: package us.wingitapp.jared.wingit; import android.Manifest; import android.content.pm.PackageManager; import android.location.Address; import android.location.Geocoder; import android.os.Bundle; import android.support.v4.app

Android Google Maps API Security Exception on API23

匿名 (未验证) 提交于 2019-12-03 02:42:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Here's the exception i got : java.lang.SecurityException :com.google.android.gms.DynamiteModulesB line 50297 in az.c() my location requires permission ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION az : android.support.transition.TransitionIcs c() : android.support.transition.TransitionIcs$CompatListener mCompatListener com.google.maps.api.android.lib6.impl :com.google.android.gms.DynamiteModulesB line 50297 in az.c() com.google.android.gms.maps.internal :com.google.android.gms.DynamiteModulesB line 274 in l.onTransact() android.os Binder

How to stylize a circle?

匿名 (未验证) 提交于 2019-12-03 02:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: It's possible to stylize polylines with dashes or dots by using icon as described in Styling a Google Maps v3 Polyline with Dashes or Dots? . But I didn't find how to stylize circles. Any suggestions, reference please. 回答1: One option, draw a circle with a google.maps.Polyline and stylize the polyline: var donut = new google.maps.Polyline({ path: drawCircle(new google.maps.LatLng(-33.9,151.2), 100, 1), strokeOpacity: 0, icons: [{ icon: lineSymbol, offset: '0', repeat: '20px' }], strokeWeight: 2, fillColor: "#FF0000", fillOpacity: 0.35 });

Google Maps API - autosuggest on hover

匿名 (未验证) 提交于 2019-12-03 02:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to make function in my web map that search input finds location, not on autosuggest click, but on autosgested place. Explain: -user points Us in input -autosuggest list places under it, like city1, city2, etc normal: users clicks place, map reload to this place, what i want: user hover mouse on place, map reloads to that place Is this possible ? I've attached on hover to elements but nothing more... $('body').on( 'hover', '.pac-container .pac-item', function(){ console.log($(this)); console.log($(this).data()); }); 回答1: There is no

Google directions api overview polyline not working

匿名 (未验证) 提交于 2019-12-03 02:40:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to show a path from the google maps directions api on a google maps static map. The url for the directions api call looks like this: https://maps.googleapis.com/maps/api/directions/json?origin=lübeck&destination=hamburg&key=MY_API_KEY I get a valid json response containing all the informations. I then want to show the encoded polyline for the path overview on a static map with this api call: https://maps.googleapis.com/maps/api/staticmap?sensor=false&size=860x600&path=enc:THE_ENCODED_POLYLINE The static map won't show the path. I

ReferenceError: $ is not defined

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is my code which does the functionality of auto address fill up and identifying the chosen latitude/longitude/address. <html> <head> <LINK rel="stylesheet" type="text/css" href="style.css"> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script> </head> <body> <p>Location: <input type="text" id="searchTextField" size="50" placeholder="Where do you want to go ?"/></p> <div id="results"></div> <script> var

Centering google maps SymbolPath on LatLon

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a way to get the google.maps.SymbolPath.FORWARD_CLOSED_ARROW to put the center of the icon at the LatLng position. It seems to be putting the point of the arrow there. I have tried to experiment with the anchor but to no avail. Here is my example code: var marker=new google.maps.Marker({ position: new google.maps.LatLng(50.124462, -5.539994), icon: { path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW, scale: 8, strokeWeight: 2, fillColor: '#009933', fillOpacity: 1, rotation: 210, anchor: new google.maps.Point(0, 0) }, }); marker

how to put two marker at a distance of 500m in google map

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How we can put two markers at a distance of 500 meter, lets say latLng for first marker is london (51,0) and second marker is put ad a distance of 500m from this marker. I have tried ever thing but couldnt find and answer for it.. any ideas 回答1: A degree of latitude is 60 nautical miles but obviously that goes out of the window for longitude. Therefore it sounds like you would need to use the Great Circle Distance Equation in reverse. GDC gives you the distance between to points on the Earth - it's complicated because it's not a straight

Display .gif image marker in google maps V3

匿名 (未验证) 提交于 2019-12-03 02:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Google Maps V2 supported all gif image markers to display in map. Now I'm migrating from V2 to gwt-maps-3.8.0 where .gif markers are displaying as constant markers. I found some similar questions but I didnt got exact thing which i'm looking for. String iconName = "Fire.gif"; MarkerOptions markerOptions = MarkerOptions.create(); markerOptions.setDraggable(true); MarkerImage image = MarkerImage.create(iconName); Marker marker = Marker.create(markerOptions); marker.setPosition(LatLng.create(30.440099, 36.843498)); marker.setMap(map);` Note: I

Google Maps JavaScript API v3 for Work UnauthorizedURLforClientIdMapError

匿名 (未验证) 提交于 2019-12-03 02:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Google Maps Web Services API for work, and they've given me a client ID. When I load up the main page, I don't get an error. However, when I click a sub-page, eg localhost:8080/pages/page.xhtml, I get an error called UnauthorizedURLforClientIdMapError, with the message that this URL is not authorized to use the provided Google Maps client ID. For reference, Google discusses it in its documentation here: https://developers.google.com/maps/documentation/business/clientside/auth#registering_authorized_urls With all that being said, I