infowindow

Changing background color in Google Map InfoWindow

岁酱吖の 提交于 2019-12-19 07:12:56
问题 I want my InfoWindows in my Google Map implementation to have a black background color. "backgroundColor" is not an available option for InfoWindows. See here. I put a div tag in the content option with a black background and white text. However, that still renders with a white border. Does anyone know a way to get a completely black background? Thanks for any help in advance. 回答1: If you want complete control over the background but want the niceties of InfoWindow, then you can can use the

Changing background color in Google Map InfoWindow

浪尽此生 提交于 2019-12-19 07:12:07
问题 I want my InfoWindows in my Google Map implementation to have a black background color. "backgroundColor" is not an available option for InfoWindows. See here. I put a div tag in the content option with a black background and white text. However, that still renders with a white border. Does anyone know a way to get a completely black background? Thanks for any help in advance. 回答1: If you want complete control over the background but want the niceties of InfoWindow, then you can can use the

Bring GoogleMaps InfoWindow to front

ぃ、小莉子 提交于 2019-12-19 03:20:52
问题 I have a GoogleMaps APIv3 application in which multiple InfoWindows can be open at any one time. I would like to be able to bring an obscured InfoWindow to the front of all other InfoWindows if any part of it is clicked - similar to the behaviour of windows in MS Windows OS. I had thought to add an onclick event handler which increases the z-index of the InfoWindow, but the event handler does not appear to be firing. ZIndex is a global variable that keeps increasing as InfoWindows are clicked

Creating Infowindows on features loaded via loadGeoJson()

北城以北 提交于 2019-12-18 12:25:02
问题 I apologize if this is basic, but I have very limited javascript knowledge. I'm making a map that loads GeoJSON data that I created in ArcGIS reformatted to GeoJSON using ogr2ogr. I've got the map loading and showing the point markers from my GeoJSON file, and I've even got a styleFeature() function to set styling on the features based on their properties. The problem I'm having is trying to have infowindows pop up when a point feature is clicked on. I have successfully used the code to set a

google maps v3 adding an info window to a circle

怎甘沉沦 提交于 2019-12-18 12:14:55
问题 Is there a way to add a infoWindow to a circle created by google.maps.Circle something like this var circ = new google.maps.Circle({ center:latlng, clickable:false, fillColor:colors[count], fillOpacity:0.3, map:map, radius:radius, strokeColor:colors[count], strokeOpacity:0.3}); and //create info window var infoWindow= new google.maps.InfoWindow({ content: "Your info here" }); //add a click event to the circle google.maps.event.addListener(circ, 'click', function(){ //call the infoWindow

GMaps API V3 - Multiple Markers & InfoWindow

落花浮王杯 提交于 2019-12-18 08:58:28
问题 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",

Google Maps API v3 (one infowindow open at a time)

北城以北 提交于 2019-12-18 04:26:09
问题 Does someone know how to modify this code so that google maps closes infowindows when you open another? In other words, I want only one infowindow open at all times. I looked around on stackoverflow but couldn't seem to implement people's solutions in this code. function initMapsDealers(){ objectLocation = new google.maps.LatLng(25.64152637306577, 1.40625); var myOptions = { scrollwheel: false, zoom: 2, center: objectLocation, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google

Google Maps Doesn't Show Zoom Controls

雨燕双飞 提交于 2019-12-18 02:18:06
问题 I am using gmaps.js plugin http://hpneo.github.com/gmaps/ The Sliding Zoom Control and the InfoWindow don't show up and have some issues when they display. Link: http://bakasura.in/startupsradar/index.html // JavaScript Document $(document).ready(function () { var map = new GMaps({ div: '#map', lat: 13.00487, lng: 77.576729, zoom: 13, }); GMaps.geolocate({ success: function (position) { map.setCenter(position.coords.latitude, position.coords.longitude); }, error: function (error) { alert(

How to add info window for clustering marker in android?

旧时模样 提交于 2019-12-17 17:53:02
问题 I would like to show an info window with an image for all markers in Android. I referred to this Google Map Cluster Tutorial. 回答1: MyItem Class: import com.google.android.gms.maps.model.LatLng; import com.google.maps.android.clustering.ClusterItem; public class MyItem implements ClusterItem { private LatLng mPosition; private String mLatitude = ""; private String mStoreLogo = ""; private String mLongitude = ""; @Override public LatLng getPosition() { return mPosition; } public void

Marker content (infoWindow) Google Maps

五迷三道 提交于 2019-12-17 17:34:17
问题 I'm trying to add infoWindow's to multiple markers on a Google Map. The closest I have come is to get an infoWindow to display the last address you can see in the array, on all markers. The bit of code I have pasted below does not work, I get an "Uncaught TypeError: Cannot read property '4' of undefined". I'm sure this is a scope issue, but I'm going round in circles here and could do with some help: var hotels = [ ['ibis Birmingham Airport', 52.452656, -1.730548, 4, 'Ambassador Road<br /