google-maps-markers

How to fit a zoom in the specific marker in react native and can select any other marker in the map?

早过忘川 提交于 2019-12-13 02:25:39
问题 In this case when the app is initialize, the Pin-marker is set in the current position, but in the same map I have others markers, when I try to select other markers it fits again in the current position, how to solve this issue? I need to select any marker... and... When I find some place(with google places) it set a new marker and it set a new position and set the camera to the current search marker with zoom in this selected marker, and my other problem was make a function to get the

How to Show/Hide Google Maps Markers by group , and trigger the event from un HTML checkbox?

时光毁灭记忆、已成空白 提交于 2019-12-13 00:46:13
问题 How can I show or hide markers of different groups (Let's say Bars/Cinemas/Parking) , by clicking on a HTML element (a Checkbox in this case)? my markers are generated into an array from a loop, like this: markers[i] = new google.maps.Marker({ numero : i, position: latLng, map: map, info: data.Description, group: data.category, }); I think I should use : An onclick on my HTML element, with a Js function. This Js function should contain this Gmaps Method setVisible Like this: google.maps.event

Google Map API in my website

白昼怎懂夜的黑 提交于 2019-12-12 23:41:32
问题 I'm confused as to what Google Map API I will implement to my website regarding this plot. 1 - My admin user will set the address of a place on the google map (probably in textboxes) 2 - The users can view the place set by the admin and has already a marker in that specific place. What are the differences between the v2 and v3? Thanks for helping. 回答1: To use API V2 you need a key and now it's impossible to get one because API V2 has been officially deprecated as of May 19, 2010, just like

How do I keep a Google Map marker in the center of the map without lag?

China☆狼群 提交于 2019-12-12 18:07:48
问题 I'm trying to keep a marker in the center of the map when a user drags the camera. I'm currently doing this by using an OnCameraChangeListener like so: @Override public void onCameraChange(CameraPosition position) { marker.setPosition(map.getCameraPosition().target); } My problem with this is lag. The marker flickers and doesn't stay in place perfectly until I stop dragging. I'm assuming a better way of doing this is to add some sort of overlay over-top the map. Any suggestions? 回答1: Yes. You

How to add values in google map v3

故事扮演 提交于 2019-12-12 17:42:58
问题 I have searched in google but i couldn't get it. I need this type where values to be in markers I tried something but i didn't get the result var locations = [ [33.906896, -6.263123, 20], [34.053993, -6.792237, 30], [33.994469, -6.848702, 40], [33.587596, -7.657156, 50], [33.531808, -7.674601, 8], [33.58824, -7.673278, 12], [33.542325, -7.578557, 15] ]; var mapOptions = { zoom: 4, center: new google.maps.LatLng(28.975750, 10.669184), mapTypeId: google.maps.MapTypeId.SATELLITE }; var marker, i

Draw circle on google maps by passing parameters to the url

ぃ、小莉子 提交于 2019-12-12 16:15:47
问题 I would like to draw a circle as an overlay on the given google maps url. This is without using the google maps API. Hence, i would like to know if this can be achieved bu just passing certain parameters to the maps url. The url i'm using is https://maps.google.com/maps?saddr=M5J&sensor=false&output=embed Thanks in advance. 回答1: No, unfortunately this cannot be done using URL parameters, you have to use the Google Maps API. Here is a list of available URL parameters. 来源: https://stackoverflow

How to create my own GMSMarker? (GoogleMaps, iOS) - Swift

浪子不回头ぞ 提交于 2019-12-12 15:02:04
问题 I would like to create my own markers because I need to track extra information about them (for example, date added, marker ID)... So I created another class, as follows: class myMarker: GMSMarker { var markerID: Int var addedDate: NSDate } But I don't know what do to next... should I create an "init" method to populate my markerId and addedDate? or I should override the GMSMarker constructor (which is not "init") It can be class myMarker: GMSMarker { var markerID: Int var addedDate: NSDate

Common event handler for all Google Maps v3 markers

走远了吗. 提交于 2019-12-12 14:39:36
问题 I have a map that shows 500 markers and they are redrawn when the user scrolls the map. Each of the markers is quite complicated - they're numbered and have click, mouseover and mouseout (to animate them) events attached. This causes some performance issues because removing and adding these markers takes a lot of time. I've been wondering if I could attach a single click, mouseover and mouseout event handlers for the whole map and catch the event that bubbles up from the markers there. Is

How to find google map anchor point of a svg path?

空扰寡人 提交于 2019-12-12 12:13:35
问题 The problem is about google map marker icons. If i use default icon the position of icon is not changing but if i use a svg,the position of marker diverging.I want to use new google map anchor point for fix this problem but i dont know how i find the anchor point of my svg.Can anyone tell me doing that fix the problem or how i find anchor point of svg.The path is below. path: "M125 410 c-56 -72 -111 -176 -120 -224 -7 -36 11 -83 49 -124 76 -85 223 -67 270 31 28 60 29 88 6 150 -19 51 -122 205

How to Set background image of a custom google map marker?

孤街醉人 提交于 2019-12-12 11:21:45
问题 I have a custom image for Google Marker but another image i have to set on its background. Is it possible to set background image of a map Marker? 回答1: Yes ,You can Try this so question How to create a custom-shaped bitmap marker with Android map API v2 Also read this 回答2: From the answer of @Abx You can add custom marker like that, googleMap.addMarker(new MarkerOptions() .icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_marker_me)) .anchor(0.5f, 1.0f) // Anchors the marker on the