infowindow

Get all infoWindows on a Google Map

隐身守侯 提交于 2019-12-11 02:24:45
问题 I am working on a map where I neet to plot multiple routes using the DirectionService, and each marker on the route has an infoWindow. Instead of having to keep track of which infoWindow binds to which marker, is there a way for me to grab all infoWindows on a map? 回答1: There are no way to do what you want. The map does not know what markers it have or what infowindows those markers have. The Markers know what map they belong to, but that is it. So unfortunatly you will have to keep track of

How can I hide infowindow on markers which are inside marker cluster

為{幸葍}努か 提交于 2019-12-11 02:08:09
问题 I am having few markers which have infowindow and markerclusters. I want to hide the infoWindow of the markers when they become part of marker clusters in the map and show tem when they are actually shown individually rather than in a cluster. The code for markers and infowindow is something like: var marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[i][1], locations[i][2]), map: map, ... }); var myOptions = { ....... }; infowindow = new InfoBox(myOptions);

Weird glitch image on google maps infowindow with bootstrap

泄露秘密 提交于 2019-12-10 22:58:58
问题 As you can see there is a glitch image right underneath the infowindow, the black shadow. There is another glitch located in the zoom in and zoom out button. I'm using bootstrap. Any ideas how to fix this? 回答1: Add the following to the css of the div containing the map #MapDiv img { max-width: none; } 来源: https://stackoverflow.com/questions/15941925/weird-glitch-image-on-google-maps-infowindow-with-bootstrap

How to open new activity (or dialog or link) from a Infowindow - Google Maps v2 Android

一笑奈何 提交于 2019-12-10 19:28:10
问题 I want to open a new activity (or a custom dialog or a link) from a infowindow. I want my UI works in this way: 1) I see the map 2) I click on a marker to show an Infowindow 3) I click a button (or something else) into the Infowindow to open a new activity (or a dialog) to show more information. Alternatively, I click a link into the Infowindow to open a webpage to show more information. I would prefer to open a new activity or dialog. By the way, can you show me the easier way to do this?

How to show all Info window in iOS Google maps without tapping on Marker?

馋奶兔 提交于 2019-12-10 19:05:11
问题 I'm trying to create markers without tapping. But i cant display all infoWindows. It only show one infowindow on last marker. Here is my code: - (void)viewDidLoad { [super viewDidLoad]; NSMutableArray *markersArray = [[NSMutableArray alloc] init]; for(int i=0; i<10; i++){ GMSMarker *marker = [[GMSMarker alloc] init]; marker.position = CLLocationCoordinate2DMake(latitude, longitude); marker.appearAnimation=YES; marker.opacity = 0.0; mapView.selectedMarker = marker; marker.map = mapView;

GInfoWindowTab equivalent in Google Maps API v3

时光怂恿深爱的人放手 提交于 2019-12-10 18:11:56
问题 In Google Maps API v2: GInfoWindowTab (title,content) - to split information in the popup-windows into parts. For example: tab1 = new GInfoWindowTab('Tab 1', 'Content of tab 1'); tab2 = new GInfoWindowTab('Tab 2', 'Content of tab 2'); and so on. In Google Maps API v3 this function doesn't work. And there isn't such function in the latest corresponding official reference: http://code.google.com/intl/ru/apis/maps/documentation/javascript/reference.html#InfoWindow Does anybody know, how to

iOS: Dynamic Marker Info Window

我的梦境 提交于 2019-12-10 16:54:29
问题 I'm trying to dynamically load an image into an infowindow. The issue is that SDWebImage doesn't ever complete. However, once I click the marker again the image shows and complete is called but never on the first time. My log for "run" shows on the first time so I know the code is being called but complete never shows on the first run unless the image is cached and in that case it will show on the second marker tap. Side note: I'm storing the link to the image in snippet since I don't have

How to pass more than just title and snippet to getInfoContents in custom InfoWindow for Android

拜拜、爱过 提交于 2019-12-10 16:04:56
问题 I have a InfoWindowAdapter class in my Android app that refers to an xml layout containing three TextViews. I add a new marker using the code below within an addMarker() method: mapView.addMarker(new MarkerOptions() .position(latLon) .title(titleText) .snippet(snippetText) .icon(BitmapDescriptorFactory.fromResource(R.drawable.pin_green))); mapView.setInfoWindowAdapter(new InfoWindow(getLayoutInflater())); mapView.setOnInfoWindowClickListener(this); I then set the text of my two infowindow

Button onclicklistener on infowindow in google map

戏子无情 提交于 2019-12-10 14:59:08
问题 How can i detect the button setOnClickListener in info window on google map? Actually in my info window i have a button and i want to click on that button. Is this possible to do this? 回答1: Try it mMap.setOnInfoWindowClickListener(new OnInfoWindowClickListener() { @Override public void onInfoWindowClick(Marker marker) { } }); 回答2: Actually it not posiable, Google Map renders the content of you custom InfoWindow into an image and displays it to you as an Image. Therefore you set a click

Google Map v3 - Center a infowindow when opened

与世无争的帅哥 提交于 2019-12-10 13:06:37
问题 I have a Google Map that works fine but I just need to tweak it so that when a marker is clicked and opens up a info window, I'd like that marker (and the map) to center on the screen. This is so that the info window is the direct focus. If it helps, I'm using Infobox.js to create the infowindows. I've tried using Offset pixelOffset: new google.maps.Size(-97, -20) but this doesn't center the infowindow or the map when you open the marker and its not accurate. My code (live example): var ib =