google-maps-markers

Deconflicting markers in map overlays

拜拜、爱过 提交于 2020-01-23 13:02:24
问题 I need to solve the problem of marking thousands of items on a map in a way that's accurate and readable and fast even when the user zooms out so that markers would overlap in confusing ways. It's an Android MapView , but my questions are more general. I am aware of Fluster, grid-based schemes, and various heuristics. These algorithms appear to be inaccurate in that cluster markers don't correspond to the centroid. My application is safety critical, and the markers are fairly big, so

Android Make Disappear or remove the blue dot on the map v2

徘徊边缘 提交于 2020-01-23 05:27:30
问题 I'm trying to replace the blue dot on the map of my app. My intention is that instead of the usual blue dot, show an icon shaped plane. I achieve this and it works perfectly as follows: //... GoogleMap.OnMyLocationChangeListener myLocationChangeListener = new GoogleMap.OnMyLocationChangeListener() { @Override public void onMyLocationChange(Location location) { LatLng loc = new LatLng(location.getLatitude(), location.getLongitude()); try{ myPositionMarker.remove(); } catch (Exception e){ //..

How to save information of markers of Map v2 so that it can be retrieve on marker click

末鹿安然 提交于 2020-01-23 03:19:27
问题 I am making an app which has map v2 and I am displaying multiple pins successfully. I have followed an tutorial which was just displaying the pin/markers on map v2. Through service I am getting information of Marker showing the Hotels location on map . The service is sending me the information which include Hotel Name, Location , Food , Services , rating and Latitude and longitude.so let me explain what I have done so far what I am doing is getting each hotel specification in my asynctask and

How to save information of markers of Map v2 so that it can be retrieve on marker click

与世无争的帅哥 提交于 2020-01-23 03:19:12
问题 I am making an app which has map v2 and I am displaying multiple pins successfully. I have followed an tutorial which was just displaying the pin/markers on map v2. Through service I am getting information of Marker showing the Hotels location on map . The service is sending me the information which include Hotel Name, Location , Food , Services , rating and Latitude and longitude.so let me explain what I have done so far what I am doing is getting each hotel specification in my asynctask and

Google Maps API: Change marker animation speed

杀马特。学长 韩版系。学妹 提交于 2020-01-21 11:02:07
问题 Google Maps API v3 currently supports two types of animation for markers : DROP and BOUNCE Is there a way I can speed up the BOUNCE or slow down the DROP animation? 回答1: Google Maps API doesn't support animation properties or customization, just the ability to select "drop" or "bounce" as you said. It should be possible to apply custom animations to marker elements through jQuery or other framework. Alternatively you could supply an animated GIF as a marker. 来源: https://stackoverflow.com

Google Maps API: Change marker animation speed

断了今生、忘了曾经 提交于 2020-01-21 11:01:39
问题 Google Maps API v3 currently supports two types of animation for markers : DROP and BOUNCE Is there a way I can speed up the BOUNCE or slow down the DROP animation? 回答1: Google Maps API doesn't support animation properties or customization, just the ability to select "drop" or "bounce" as you said. It should be possible to apply custom animations to marker elements through jQuery or other framework. Alternatively you could supply an animated GIF as a marker. 来源: https://stackoverflow.com

Google Maps API: Change marker animation speed

时光总嘲笑我的痴心妄想 提交于 2020-01-21 11:01:26
问题 Google Maps API v3 currently supports two types of animation for markers : DROP and BOUNCE Is there a way I can speed up the BOUNCE or slow down the DROP animation? 回答1: Google Maps API doesn't support animation properties or customization, just the ability to select "drop" or "bounce" as you said. It should be possible to apply custom animations to marker elements through jQuery or other framework. Alternatively you could supply an animated GIF as a marker. 来源: https://stackoverflow.com

Snap to nearest marker

不想你离开。 提交于 2020-01-21 05:42:08
问题 i am using GoogleMaps and i have 2 or more markers and they are draggable. I want to snap 2 markers if they are near and merge them into 1. is this possible ? Can someone give me pointers .. how i can realize that ? 回答1: You need to handle the drag event on the GMarker object. The trick is what do you do when you detect that you are near enough to another marker to snap them together. I played around a little with this and thought maybe hiding the currently dragged marker might be a good way

Customizing clickable area on a Marker in Google Maps v2 for Android

喜你入骨 提交于 2020-01-20 05:53:10
问题 I am currently using Google Maps v2 API for Android and doing some custom overlays. For starters, I create a custom bitmap that is quite a big larger than the standard "marker". I know that using an older Maps API, you can create a custom overlayitem which controls the click-able area, but it must also be possible on the newer Maps API. I simply want my custom marker's click-able area to be the same as the custom bitmap icon I am setting it to. I have read over the examples and documentation

Javascript Closure with google.maps.Geocoder::geocode

佐手、 提交于 2020-01-17 12:27:12
问题 I'm using google.maps javascript API v3. I need to translate a set of civic addresses to markers on a google map with 'click' listeners. When the user clicks on the marker in the map, I want another window to open with a url related to that address (another tab would be ideal). I can't manage to keep the relation between the address and the url, because I'm using javascript Closure with the google method geocode(). I have a set of addresses such as var addresses = [ '123 street street', '124