infowindow

Android/Google Maps: How to get different info windows for different markers?

谁说我不能喝 提交于 2019-12-12 06:39:34
问题 This is my first time working with Google Maps so sorry if this is a beginner problem. I am working on an app that connects to a portable sensor. The sensor sends pollution data every 2 minutes. Every time I get new data, a marker is placed on google maps and I want to show the data in the info window of the markers so that you can see how the pollution differs depending on where you are. My problem is that as of now, all my markers info windows are updated with the newest data. I need to

How to make the infowindow appear depending upon the space it already have and not move the map

旧城冷巷雨未停 提交于 2019-12-12 06:26:14
问题 I am displaying few locations in google maps. I refresh these locations if a user zoom in/out or drags the map. Now the issue is if i click on the marker of a location then the info window opens up and drags the map if it doesn't have any space to show. This dragging causes my locations to be refreshed and hence my marker vanishes. I tried disableAutoPan: true but then the info window is not seen only. Is there any way that the info window auto adjust itself. is there any way to sort this out

InfoWindows are not unique, google maps API v3, jquery mobile

China☆狼群 提交于 2019-12-12 05:56:44
问题 I have a simple program where I want the following to happen: Click "Add Some Markers to Map", will show 4 markers with the locations specified in the cityList array. Click on a marker and it will open up and infoWindow and display the corresponding index in the cityList array. So if you click on the marker corresponding to cityList[0] , it will show you "0" in the infoWindow. I can add the markers and add the infoWindows, but the content in the infoWindows are incorrect. First of all, they

Google Maps Version 2 - Updating information windows

不问归期 提交于 2019-12-12 04:57:10
问题 As we know in google maps android version 2, a custom information windows, is a view that converts to an image. Actually google aftre you return you view converts the view to a image an then show it to the info windows. But I want to show images downloading from internet to my infowindow. Actually, I want that before that download complete show an progress bar to my infowindows and after it compeleted update info windows, by this mechanism how I can do this? 回答1: Have a model object that

Google Maps API V3 - Custom infobox for multiple polygons

☆樱花仙子☆ 提交于 2019-12-12 02:21:20
问题 This is my first time working with the Google Maps API. I have a styled map with multiple polygons that each need their own infobox. The infoboxes need to be styled. My problem is that I can't get the infoboxes to work at all. I've been looking for a solution for days now, I've even tried this http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.9/examples/infobox-basic.html I must obviously be doing something wrong. Here's my code: http://pastebin.com/M23PPXpn 回答1: I

Meteor - Google Maps InfoWindow Event Not Firing

这一生的挚爱 提交于 2019-12-12 01:47:11
问题 Using Meteorjs and dburles google map package for Meteor. The Goal: Is to have the markers map out on the canvas, and then onclick to reveal the infoWindows. I am having an issue firing the google map event in order for the window to reveal. My Code: Template.myMap.helpers({ mapOptions: function() { var locations = [ ['Kroger', 34.069201, -84.231052, 5], ['Fresh Produce', 34.069802, -84.234164, 4], ['Starbucks', 34.069003, -84.236323, 3], ['Mall of Georgia', 34.069204, -84.232016, 2], [

how to add tabs to infowindow which uses extInfoWindows for google map

混江龙づ霸主 提交于 2019-12-12 01:35:55
问题 I have the following code to display the info window on the google map when marker is clicked how can i add tabs to the infowindows which is using extinfowindows ,can anyone help to trace out the problem. function createMarker(point, name, address, imagepath) { var marker = new GMarker(point, gicons[imagepath]); var html1 = '<span class="name-tab"><b>' + name + '</b></span> <span class="info"><br/>' + address + '</span>'; GEvent.addListener(marker, 'click', function () { marker

angular-google-maps - listen for infowindow domready event

混江龙づ霸主 提交于 2019-12-12 01:25:08
问题 Listening for the domready event in normal js Google maps is relatively easy as outlined here : infoWindow = new google.maps.InfoWindow(); google.maps.event.addListener(infoWindow, 'domready', function() { // whatever you want to do once the DOM is ready }); However it doesn't seem obvious how to do it in angular-google-maps. Is there a solution ? 回答1: The solution when using Angular Google Maps involves using the infowindow control object - see docs. As noted in this issue - where I first

Google maps marker loading last record

纵饮孤独 提交于 2019-12-11 23:01:38
问题 I am trying to add a group of markers to google maps each with a infomation window. I am using a mix of php and javascript to do this, the php gets all the records from the database and then the javascript adds all the markers to the map with the coordinates taken from the database. Here is what I have so far: <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng(<?=$lat?>, <?=$long?>); var settings = { zoom: 12, center: latlng, mapTypeControl: false,

gmlib google maps infowindow error

天涯浪子 提交于 2019-12-11 22:20:03
问题 I use the gmlib V1.4.0 for Delphi Embarcadero XE6. I can create a marker and show them on google maps but when I create a popup for more info (I use GMMarker.InfoWindow.HTMLContent = 'test') then I get an error message after refresh the map. If I don't open the InfoWindow and refresh the map they will not be the following error. ("Pagina inicial aun no cargada") What is wrong? If I do only 'BTN_CreateMarkerClick' and then 'BTN_DoMapClick' they will work but if I call 'BTN