problem about infowindow-Collection of common programming errors
omega
android customization google-maps-android-api-2 infowindow
I am trying to create my own info window, but when I go to the map activity, it crashes (before I even get to see the map).This is the code I am using. Does anyone know whats wrong?Thanks.public class ActivityMap extends FragmentActivity implements Restartable { GoogleMap map = null;public static String ID;public HashMap<String, String> markerID = new HashMap<String, String>();@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentVi
geocodezip
google-maps google-maps-api-3 zoom infowindow
I am building a store locator using php sql and javascript. I’ve done this tutorial https://developers.google.com/maps/articles/phpsqlsearch_v3 and got it working. I am trying to implement zoom in/out links on the infoWindows, for when the user clicks a marker. Its not working, in FireFox I am getting no errors in the console. In Chrome I am getting Uncaught TypeError: Object # has no method ‘setCenter’ Ive been searching the forums but have been unable to find a solution. Sorry I dont have a ve
maartenmachiels
javascript database google-maps infowindow marker
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! Impor
Fran Rod
xml google-maps-api-3 infowindow
I have this code which load a xml file and push some markers into the map. This xml file is called again every 5 seconds and I update the position of the markers using marker.setPosition, what I want is to update the infowindows when I click over a marker. The problem now is that is always showing the first data loaded at the beginning. So if anyone know how to code it I would be very grateful.Best regards and thank you veruy much. //<![CDATA[var gmarkers = []; var map = null; var infoWindo
DarrylGodden
javascript google-maps markers infowindow
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 />Bi
mike628
google-maps infowindow
I am trying to create listeners for some map markers. I can create the markers and they are on the map but, no matter which marker I click on it tells me “Uncaught TypeError: Cannot call method ‘open’ of undefined” . When I break at the open code it is showing markers[46] which is one more that the highest index. And it doesnt matter which marker I click on its always the same index. EDIT: I edited the code and pasted all of it. No errors, but nothing happens when I click a marker. I am looki
Mike Beale
google-maps google-maps-api-3 infowindow
Just started converting our maps from V2 of the API to v3.Got one issue so far in that when an InfoWindow is open, and the map is zoomed in, the InfoWindow will move off the map and eventually not be visible, this is different behaviour than in V2. In V2 the InfoWindow remains in view all the time.V2 map: http://www.stroud.gov.uk/docs/housing/tenant_map_v2.aspV3 map: http://www.stroud.gov.uk/docs/housing/tenant_map_v3.aspSimply click on any marker to open it’s InfoWindow, then zoom the map in wi
Tijmen
google google-maps-api-3 infowindow
Based on a selected country and date a list of results will show up on the map. The placements of markers with html data in them works fine, the problem I have is handling the cases with duplicate markers.I found a way to check for duplicate ones, but I would like to be able to modify the content in the infowindow of the one already present. So that I can add the content of the duplicate marker to the existing marker that stands in the same location.The problem I’m having is that I can’t find th
Teddy
google-maps infowindow
I have to show InfoWindon in two cases: Clicking on marker Hovering search results.Also, no script error are shown, but the info windows are not showing. Here is my code: var searchResults = {“100065”:{“Rank”:100065,”ID”:100065,”Country”:”France”,”Department”:null,”CityName”:”Paris”,”ZipCode”:”75019″,”PropertyType”:”Apartment”,”Title”:”Super sweet villa100065″,”Address”:””,”Price”:45000.0000,”Longitude”:2.386708,”Latitude”:48.890614,”HideAddress”:false,”Zone”:null,”IsAgency”:true,”Image”:null,”
sesamos
android google-maps android-intent infowindow
I am trying to call an activity from a non activity class but I m not able to accomplish this task .My goal is to call a new activity from info window , when the image in the info window is clicked . How can I call activity from non activity class ? Any help is appreciated .Thank you. package com.icons.draw.view;import java.util.Iterator; import java.util.List;import android.content.Intent;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.Canvas;import
skaffman
javascript google-maps google-maps-api-3 infowindow
I am using gmap v3. I am facing a problem. The problem is that I am creating dynamically marker and at similar time I am creating the infowindow of that marker. Now I want to add some contents in any infowindow of a marker. But don’t know how i can get the content of a infowindow. I have stored my markers objects in a array and also infowindow’s objects. But not found any solution.I want to get infowindow’s content on the basis of marker.EDIT:var markerArray = new Array(); var infoArray = new A
intheblue25
jquery google-maps fade infowindow openinfowindowhtml
I have searched the web high and low and have not been able to find a tutorial or example of using jQuery to fade an Infobox/Infowindow in Google Maps not the content the actual box/window. Here is my code, I’m not sure what I’m doing wrong, but something also doesn’t seem right. `google.maps.event.addListener(marker, ‘mouseover’, function() {ib.setContent(html);ib.open(map, marker);ib.setValues({type: “point”, id: 2})var idName = marker.get(“id”); //I was trying to the id’s of the elements her
gotardo
google-maps google-maps-api-3 maps infowindow
I am trying to manage an arrray of InfoWindow objects from the Google Maps JavaScript API v3. My array is defined as global so I can manage all the Infowindow objects like this:I edited the code to add some details as Sean told:google.maps.event.addListener(markers[id], ‘click’, function() {for ( var i = 0; i < infowindows.length; i++ ) {var infoWin = infowindows[i];if ( infoWin === undefined || infoWin === null ) {continue;}infoWin.close();}map.panTo(markers[id].getPosition());infowindows[id
Andrew Leach
google-maps google-maps-api-3 infowindow
Can somebody help me?I have problem with display of infoWindow in Google Maps API – background shadow is not showed correctly. Transparency of shadow is not work.[You can see problem on webpage][1] (click on red litle A in circle to show problem)Code is here:var geocoder; var map; function initialize() { var pinkParksStyles = [ { featureType: “all”, stylers: [ { saturation: -80 } ] }, { featureType: “landscape.man_made”, stylers: [ { hue: “#ed1c26” }, { saturation: 100 }, { gamma: 0.2 } ] } ];
Web site is in building