infowindow

Google maps: infowindow is not closing

萝らか妹 提交于 2019-12-17 17:15:08
问题 My infowindows are not closing automatically when i click on the other marker.. here the code : http://pastebin.com/PvCt2z7W here is the code for markers with infowindows for (var n = 0 ; n <listFavourite.length ; n++) //var favouriteObject =listFavourite[n]; addMarker(listFavourite[n]); } function addMarker(data) { var marker = new google.maps.Marker({ position: new google.maps.LatLng(data.lattitude, data.longitude), map: map, title: data.address }); var contentString = '<div id="content">'+

google map info window multiple addresses via xml

旧城冷巷雨未停 提交于 2019-12-17 17:08:00
问题 I'm using the Google map code below to retrieve and plot markers for multiple addresses from an XML file dynamically created with PHP. The code is doing everything I need except for displaying the correct information in the Google map info window for the corresponding marker. I get the information of the last XML item/listing for all the markers. I've been searching and trying different variations to get it to work, but no luck. sample XML data <?xml version="1.0" encoding="UTF-8"?> <listings

google map info window multiple addresses via xml

谁说我不能喝 提交于 2019-12-17 17:06:34
问题 I'm using the Google map code below to retrieve and plot markers for multiple addresses from an XML file dynamically created with PHP. The code is doing everything I need except for displaying the correct information in the Google map info window for the corresponding marker. I get the information of the last XML item/listing for all the markers. I've been searching and trying different variations to get it to work, but no luck. sample XML data <?xml version="1.0" encoding="UTF-8"?> <listings

Creating custom info window in swift with the Google maps iOS sdk?

我的梦境 提交于 2019-12-17 16:29:25
问题 I have created a xib and a view controller, and want to display it a customised info window for a marker in swift. After searching on the Internet I have found an old tutorial in OBJ-C however this will not help me. Thank you. 回答1: You can implement the markerInfoWindow method from GMSMapViewDelegate Sample implementation to show an custom info window in Swift: func mapView(mapView: GMSMapView!, markerInfoWindow marker: GMSMarker!) -> UIView! { var infoWindow = NSBundle.mainBundle()

Adding event to element inside Google Maps API InfoWindow

社会主义新天地 提交于 2019-12-17 10:41:31
问题 I want to put a form with input field and submit button inside a Google Maps API (v3) InfoWindow. When submitted I would like to call a function that initiates the directions service using the address entered into the input field. Here's my code (I'm currently only testing whether the directions event is being fired. I've written the full getDirections() event and can confirm it works and returns directions when fired properly): I tried adding an event listener using MooTools, like this: var

Dynamic contents in Maps V2 InfoWindow

扶醉桌前 提交于 2019-12-17 06:35:43
问题 I want to show an InfoWindow on markers in a Maps V2 fragment. Thing is, I want to show BitMaps that are dynamically loaded from the web with Universal Image Downloader. This is my InfoWindowAdapter: class MyInfoWindowAdapter implements InfoWindowAdapter { private final View v; MyInfoWindowAdapter() { v = getLayoutInflater().inflate(R.layout.infowindow_map, null); } @Override public View getInfoContents(Marker marker) { Item i = items.get(marker.getId()); TextView tv1 = (TextView) v

close InfoWindow before open another

拟墨画扇 提交于 2019-12-17 05:15:22
问题 I have a problem with InfoWindow. I have an ajax function that retrieves data via JSON, but I can not get close InfoWindow automatically when you open another. My code is this: var mapOptions = { center: new google.maps.LatLng(44.49423583832911, 11.346244544982937), zoom: 13, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("mappa_locali"),mapOptions); $.ajax({ type:'GET', url:"locali_json.php"+urlz, success:function(data){ var json = JSON.parse

Google Map Infowindow not showing properly

寵の児 提交于 2019-12-17 02:37:41
问题 The infowindow is not showing properly on my map when clicking on a marker. The website is here. You'll also notice the map control isn't properly displayed either. var map; var locations = <?php print json_encode(di_get_locations()); ?>; var markers = [] jQuery(function($){ var options = { center: new google.maps.LatLng(51.840639771473, 5.8587418730469), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), options); for (var i

Google Maps v3 marker over infowindow

假如想象 提交于 2019-12-13 08:13:53
问题 I need to display marker over opened infowindow. Here is an example of what I'd like to do If I understand correctly, the property zindex for marker and infowindow not act for each other. 回答1: You are correct, the z-index property works only along with the same type of objects (relative z-index) . Marker z-indexes compared with other Markers, Polygons with other Polygons, and InfoWindows with other InfoWindows. Each of these types have their own layer z-index related to each other that cannot

Google Maps API - Get info window to open when clicking a circle?

别说谁变了你拦得住时间么 提交于 2019-12-13 07:47:08
问题 I'm trying desparately to get a google map with circles which can be clicked to open an infowindow. It really doesn't seem like a complicated ask but searching online it does't seem to be possible, but I'm wondering if those posts are old and it's now possible. What I'm trying to do I'm trying to have a google map (HTML code which I can 'host' on SharePoint) with circles in different locations (This bit is fine so far) where I can click the circle to open an info window with a list of people