Dealing with markers.

14 views
Skip to first unread message

sepoto

unread,
Jun 14, 2011, 2:34:08 PM6/14/11
to google-map...@googlegroups.com
I have a request from a client for an information window that is always visible on the map. Is something like this possible? Right now I am using markers like this:

var marker = new google.maps.Marker({
position: new google.maps.LatLng(34.0785,-118.377),
map: map,title: '411 N WESTMOUNT DR 90048',
icon: 'http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png'});

var marker = new google.maps.Marker({
position: new google.maps.LatLng(34.0584,-118.274),
map: map,
title: '619 S WESTLAKE AVE 90057',
icon: 'http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png'});

var marker = new google.maps.Marker({position: new google.maps.LatLng(34.0584,-118.274),
map: map,
title: '619 S WESTLAKE AVE 90057',
icon: 'http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png'});

I get a nice information window when I hover but I want it to be visible all the time.

Thank you!

Rossko

unread,
Jun 14, 2011, 2:57:02 PM6/14/11
to Google Maps JavaScript API v3
> I get a nice information window when I hover but I want it to be visible all
> the time.

Then make it so.
http://code.google.com/apis/maps/documentation/javascript/overlays.html#InfoWindows

Nothing in your code snippet makes any infowindows at all. The
'title' option gives a marker a 'tooltip' that shows when you hover
over it, this is not called an infowindow in terms of the maps API
Reply all
Reply to author
Forward
0 new messages