infowindow

Google Maps API - opening a single infoWindow

孤街醉人 提交于 2019-11-29 17:30:53
I'm following a SitePoint tutorial for integrating the Google Maps API into our site with jQuery, and I've got everything working really well, with one exception: each new marker opens a separate info window, without closing the previous one. I'm trying to figure out how to have only one window open at a time. Here's the tutorial in question: http://www.sitepoint.com/google-maps-api-jquery/ I've checked this question here: Have just one InfoWindow open in Google Maps API v3 but I wasn't able to solve my problem by following the answer there (I could have easily misinterpreted). My code looks

infoWindow's image not showing on first click, but it works on second click

旧巷老猫 提交于 2019-11-29 16:50:14
My android using the Google map android API,InfoWindow's image not showing on first click, but it works on second click I customize the infoWindow using void setMapInfoWindow(){ mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() { @Override public View getInfoWindow(Marker arg0) { return null; } @Override public View getInfoContents(Marker arg0) { View v = getLayoutInflater().inflate(R.layout.windowlayout, null); final ImageView img = (ImageView)v.findViewById(R.id.imageView3); //image Picasso.with(context).load("http://imgurl").resize(140, } }); } Here is my marker set up process

How to keep single Info window open at the same time in Google map V3?

我是研究僧i 提交于 2019-11-29 16:35:03
aI know that this one is repeated question, I am using google map v3 on my Django web based applicaiton. Where i am using Markers, Infowindow and polyline . Everything works fine, except the one when i click on a marker to show the content by Info window, the previous opened info window didn't closed. I am posting the my map code(only the script part or which are the useful): var marker = add_marker(flightPlanCoordinates[i][0], flightPlanCoordinates[i][1],"Event Detail",myHtml); Here myHtml is a variable which contains the Info window content. I didn't define the variable here. SO ignore it.

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,

Auto close InfoWindow in googlemap

会有一股神秘感。 提交于 2019-11-29 13:05:50
I do not know how to do in order to automatically close a InfoWindow when another opens. function bindInfoWindow(marker, map, title, race, loc, org, web, link) { var infoWindowVisible = (function () { var currentlyVisible = false; return function (visible) { if (visible !== undefined) { currentlyVisible = visible; } return currentlyVisible; }; }()); iw = new google.maps.InfoWindow(); google.maps.event.addListener(marker, 'click', function() { if (infoWindowVisible()) { iw.close(); infoWindowVisible(false); } else { var html= "<div style='color:#000;background-color:#fff;padding:5px;width:250px

Open infoWindow of specific marker from outside Google Maps (V3)

大憨熊 提交于 2019-11-29 08:12:54
问题 I can't seem to get my head around this problem: I've got a map with (a lot of) markers (companies) that come from a generated XML file. Below the map, I want to show a (non-JavaScript-generated) list of all the companies that are displayed on the map. When I would click a company in the list, the map would pan to that specific marker and open an infoWindow. The thing is that I want the map and the list to be two separate things... What would be the right way to tackle this problem? Thanks!

Check if infowindow is opened Google Maps v3

隐身守侯 提交于 2019-11-29 02:13:33
问题 Please, I need a help. I want to check if my infowindow is opened. For example: if (infowindow.isOpened) { doSomething() } or if (infowindow.close) { doAnotherthing(); } I dont have any idea, how to do this 回答1: This is an undocumented feature, and is therefore subject to change without notice, however the infoWindow.close() method sets the map on the object to null (this is why infoWindow.open(map, [anchor]) requires that you pass in a Map ), so you can check this property to tell if it is

Google Maps API v3 - Markers All Share The Same InfoWindow

雨燕双飞 提交于 2019-11-29 01:57:02
I've been digging around everywhere and I can't seem to figure this out. It's driving me crazy! I'm a newbie to javascript in general, so I can't quite put a finger on the translation that would fix my issue. I noticed that a lot of people have this problem, but they all seem to use more advanced(or just confusing) code than I. Anyway, here goes! I've been having the problem where all of my markers share the same content. function initialize() { var myOptions = { center: new google.maps.LatLng(34.151271, -118.449537), zoom: 9, mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: false,

Google Maps Doesn't Show Zoom Controls

僤鯓⒐⒋嵵緔 提交于 2019-11-28 23:19:18
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('Geolocation failed: ' + error.message); }, not_supported: function () { alert("Your browser does not