google-maps-markers

GMaps API V3 - Multiple Markers & InfoWindow

大兔子大兔子 提交于 2019-11-29 15:17:20
I know, it is a recurrent but... I have a big problem with my multiple markers : all of them have the same title and the same infowindow content. I've searched on many websites, but I didn't find where is the problem in my code. I hope you'll be able to help me (I am sure it is the case !) This is my code : <script type="text/javascript"> var map; var geocoder; $(document).ready(function() { initializeMap(); }); function initializeMap() { var people = [{"userid":"47","lastname":"lastname1","firstname":"firstname1","address":"SomeAddress","phone1":"00000000000","phone2":"","email":"me@me.com"},

InfoWindow on Marker using MarkerClusterer

浪子不回头ぞ 提交于 2019-11-29 14:56:49
问题 This is my html code. I've try anything to add an infowindow on the markers but it don't wanna work. My data is loading from the "Alle_Ortswahlen.page1.xml" file. Do anyone have an idea how can I add infoWindow to each marker? <script type="text/javascript"> google.load('maps', '3', { other_params: 'sensor=false' }); google.setOnLoadCallback(initialize); function initialize() { var stack = []; var center = new google.maps.LatLng(48.136, 11.586); var options = { 'zoom': 5, 'center': center,

RichMarker for Google Maps v3 - Click falls through marker

点点圈 提交于 2019-11-29 14:55:23
I am using RichMarker for Google Maps v3 as found at https://googlemaps.github.io/js-rich-marker/reference.html I have successfully been able to register clicking on the marker with this code: google.maps.event.addListener(this.richMarker, 'click', function(event) { console.log("click made on marker"); }); However the click also falls through the marker, so it registers a click on whatever falls behind it. ie the map, if it has a handler: google.maps.event.addListener(map, 'click', function(event) { console.log("click made on map"); }); Or a polygon if it is clickable. How can I prevent this

How can i capture the click event when a default marker/place is clicked on googlemaps?

烈酒焚心 提交于 2019-11-29 13:58:32
I am working with Google Maps API V3. The googlemaps displays markers for some places/location by default, I need to capture the click event when one of them is clicked.. I have tried to use the click event of the map but it not works because the user is clicking the marker not the map, code is given: google.maps.event.addListener(mymap, 'click', function () { alert('clicked'); }); Can someone give me an idea how to do it? EDIT: I can find no suitable Event in the available Events , which can help me! Please note that I am not talking about the custom Markers (Created by User), these are

Google Maps with Multiple Information in one marker

会有一股神秘感。 提交于 2019-11-29 12:46:13
I am developing a web application that contains some information about place. That place may have more than one agenda. Can I show more information in one marker, such as stack balloon? This is my maps http://petamajelis.org/maps/index.php This is my data http://petamajelis.org/maps/ajax2.php there are some places that have more than one agenda, and I want to show all of that agendas in one marker if the latitude and longitude are same. this is my code to show marker depend on database, I put it in index.php function load() { var map = new google.maps.Map(document.getElementById("map"), {

Is it possible to show/hide Markers in Android Google maps api v2?

大憨熊 提交于 2019-11-29 12:33:54
问题 I would like (in my Android app using Google maps api v2) to hide or show markers on my GoogleMap object according to a category, just like in the google maps web api, for example: I have a GoogleMap with 50 Markers, 20 of them represent restaurants, 20 them represent bus stops, and 10 are cinemas. Is it possible on Android google maps api v2 to do filtering on these markers, by hiding all the restaurant markers if we un-tick a checkbox for example? I would like to do something like that but

Google api v3 show nearby markers on customer road

…衆ロ難τιáo~ 提交于 2019-11-29 11:30:52
How can I show only the markers (they are predefined, but hidden for the whole map), which are nearby (may by radius of 10mile or 20mile) to the road I choose using Google api v3 for example I use Directions service HTML: <div id="panel"> <b>start: </b> <input type="text" id="start" name="start" maxlength="30" onchange="calcRoute();" /> <b>end: </b> <input type="text" id="end" name="end" maxlength="30" onchange="calcRoute();" /> </div> <div id="map"></div> JavaScript: var directionsDisplay; var directionsService = new google.maps.DirectionsService(); var map; function initialize() {

Add GIF image to marker of Google Map Api v2

旧街凉风 提交于 2019-11-29 10:53:37
When I add GIF Image to marker of google map V2 the image is shown but it stops its movement. Why? And how can I solve this issue and make the image do its movement? Hope anyone can help me. Thanks in advance. Marker Icon in google maps android api v2 is a static image and you cannot change the icon once you have created the marker. So if you are trying to include any animation using GIF images, it will not be supported and only a single image from the GIF will be shown as the icon. An option to achieve changing marker image is to programatically remove() the marker after a certain time and

Pulse ring animation around a Google Maps marker iOS

时间秒杀一切 提交于 2019-11-29 10:23:32
问题 I want to add a pulse ring animation around a marker as a current user location in iOS google maps (like Uber). I tried with adding CABasicAnimation to marker layer by addAnimation . It is not working. Also I tried animate the scale of the marker but the scale change did not happen. Can anybody help me with this thing? 回答1: somehow it is working now. I created a custom view and set that view into GMSMarker iconView . After that added animation into view layer. UIView *view = [[UIView alloc]

map.setmylocationenabled(true) not working

假装没事ソ 提交于 2019-11-29 10:06:41
I'm working with Google Maps in my android app. I need to recenter the map to the client's current location. I used the following statement - map.setmylocationenabled(true); This displays a button on the top right but clicking that doesn't work. The button click listener: mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() { @Override public boolean onMyLocationButtonClick() { mMap.addMarker(new MarkerOptions().position(myLatLng).title("My Location")); mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(myLatLng, zoomLevel)); return false; } }); Daniel