google-maps-markers

How would I position a marker at the bottom of the map in Google Maps v2?

I have a webpage that finds a store by postcode or name. I have just released an update to it so that contact details display in an info window coming from the marker. Due to the small size of the info window, after centering to the marker, the map pans down until it can fit the marker and info window in leaving the marker near the bot...

Externalising Google Maps InfoWindow Content When Marker Is Selected

Hi, I'm wondering if anyone knows whether it is possible to take the content of a Google Maps InfoWindow and place it in an external DIV when the marker on the map is clicked? I've had a good dig around both the API docs and Google to see if I can find any examples or information relating to this but have had no luck so far. However I'...

Need help geocoding town names to their coordinates in a loop

Hi, Ive read similar posts, but still didnt find a solution for myself. Basically I have an array with countries+towns in PHP and I need to show them on the map with markers. Here is my code: function showAddress(markers) { var address = "<?php echo $Fcity[$j], " , ", $Fcountry[$j]?>"; if (geocoder) { geocoder.getLatLng(address, f...

Google Maps API {removeOverlay(marker);} AND {clearOverlays();}

i have a problem in removing the old markers without removing the central point of the circle "it's also a marker" the source :::: <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <script src="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;se...

Bouncy marker in Google Maps v3

Hi! In Google Maps API v2 we can set to marker an option bouncy:true. It adds to marker eye-candy ability - after dragging this marker, it is bouncing. Is it possible to do in API v3 ? ...

Google Maps Rendering markers and map center differently in Internet Explorer

Hiya All, I have a strange problem with Google Maps showing differently in IE and the rest of the browser world. I'm testing in IE8 and in IE8 Compatibility view, both show the same, but Safari, FF, Chrome all act fine and as expected. The page i'm working on is this: http://afid.staging.dante-studios.com/ at the front are two place ho...

Google Maps:Knowing what marker the event was fired for

I have JSON objects returning form the server and markers created for them. On the mouseover event for these marker, I need to know the ID or what index of the JSON object the clicked marker was binded from. For eg. an array JS = {"a", "b", "c"} (cordinates ommited) was looped through and the markers were placed on the map. If the mark...

How to center map on marker and open marker's InfoWindow in one method

I'm using Google Map APIv2. On my webpage I've a sidebar containing a list of markers with onclick event executing showDetails method, that looks like: GMarker.prototype.showDetails=function() { map.panTo(this.getLatLng()); this.openInfoWindowHtml(this.details); }; The problem is that i cannot both panTo and openInfoWindowHtml ...

Setting marker zIndex in IE

I'm trying to set zIndex to markers, mainly, i want to set all green markers on top. The code below works GREAT in any other browser but IE! I'm checking in the marker is green if it's containing 'st1' in the filename. I'm using mootools so the code is a bit mootools specific, but any javascript help would be appreciated: gmarkers.ea...

Placemark image being stretched on Google Maps API application

Has anyone else experience a custom placemark being vertically stretched and found a solution to it? Example: http://www.mattpotts.com/so-stretched.png And this is the code I have: var blueIcon = new GIcon(G_DEFAULT_ICON); blueIcon.image = "images/beer-24x24.png"; var marker = new GMarker(point, {draggable:true, icon:blueIcon}) ...

Google Maps Hide marker on polyline

Hey Guys, I'm trying to hide the markers which are given as part of a GDirection polyline (Specifically the start and end one) as we have custom markers which are always at that location. This is what I have tried var gDirections = new GDirections(googleMap); GEvent.addListener(gDirections, "load", changeGColor); function changeGCol...

How long are Google Static Map custom markers cached for?

How long are Google Static Map custom markers cached for? ...

Marker Manager not showing markers

Hi there, I am having problems using the MarkerManager. Somehow Markers added with the MarkerManager do not show up, though i do mgr.refresh(); It works when i use basic map.addOverlay(marker); but not when using mgr.addMarker(marker);. Weird. Hope someone here can help. Here's the relevant code: if (GBrowserIsCompatible()) { ma...

Google Maps - zoom to fit markers doesn't work when map isn't visible

I'm using the Google Maps API v2. I add markers to the map and then zoom to fit those markers. This works fine if the map is visible I do this. But if not - for example, if I have a tabstrip, and the map's tab isn't selected when the page loads - then when I do show the map, the zoom level and center are wrong. Here's a simple test case...

Google Map Dialog/Info Window Not Appearing on Touch

I am trying to add infowindows to markers/pushpins on the map. ATM, it is not working. Current code: TravelBuddy.java/TabHost package com.jappapps.android.travelbuddy; import java.util.List; import android.app.TabActivity; import android.content.Context; import android.content.Intent; import android.graphics.drawable.Drawable; import ...

Custom Map markers and custom backgrounds

I am trying to get the images to have transparent backgrounds so the map is not blocked by a square marker with an image in it. What image editor and what settings should I use to get this to work? I am trying to do some custom backgrounds for buttons and the same problem comes up: I get square corners and a background that does not sca...

Google Maps displaying custom paths

I'm trying to customize the icons drawn by the GDirections object. I've got a list of lat long coordinates which I use to construct a path. However, I can't find any way of customizing (or even turning off) the markers that are automatically placed by the API. var map; map = new GMap2(document.getElementById("map_canvas")); .... //get ...

Google Maps: How can I change the z-index of a Marker?

There are about 100 markers on a google map plus there is one special marker that needs to be visible. Currently, the markers around it hide it totally or partially when the map is zoomed out. I need that marker to be fully visible and I think keeping it on top of all other markers should do the trick. But I cannot find a way to modify i...

Get points from a Gdirections route

Hi, I'm trying to get a collection of points (latitude,longitude) between 2 adresses. The points needs to be on a valid tracfic route. I currently use Gdirections to create a route between 2 adresses. Is there a method to get somepoints allong this route? To me it seems impossible... thx in advance! ...

Google Maps V3 Route Destination Mark Edit

Hey Guys, Using the google.maps.DirectionsService.route() and google.maps.DirectionsRenderer.setDirections() method, is it possible to change the text on the info window for the destination, without creating a custom parser for the journey? I couldn't see anything in the API which allowed you to access the markers of the route. I don'...