[thelist] Google maps icon not appearing
Mark Lee
leemark at gmail.com
Mon Jun 11 15:21:07 CDT 2007
Is it your icon url here:
icon.image = "http://grassies/g/maps/icons/GrassieBand.png";
?
On 6/11/07, Joel D Canfield <joel at streamliine.com> wrote:
>
> I'm way over my head sorting out how Google maps works - any tips on why
> the icon isn't showing up on this page: http://www.grassies.com/g/maps/
> using this code?
>
> function load()
> {
> if (GBrowserIsCompatible())
> {
> var map = new GMap2(document.getElementById("map"));
> map.setCenter(new GLatLng(38.758640, -121.284750), 17);
> map.addControl(new GSmallMapControl());
> map.addControl(new GMapTypeControl());
> var point = new GLatLng(38.758640,
> -121.284750);
> var icon = new GIcon();
> icon.image =
> "http://grassies/g/maps/icons/GrassieBand.png";
> icon.shadow =
> "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
> icon.iconSize = new GSize(18, 24);
> icon.shadowSize = new GSize(22, 20);
> icon.iconAnchor = new GPoint(6, 20);
> icon.infoWindowAnchor = new GPoint(5,
> 1);
>
> function createMarker(point, text)
> {
> var marker = new GMarker(point, icon);
> GEvent.addListener(marker, "click",
> function()
> {
> marker.openInfoWindowHtml(text);
> });
> return marker;
> }
> map.addOverlay(createMarker(point, "Our
> House:<br />286 Alta Vista Avenue<br />Roseville, CA 95678"));
> }
> }
>
> thanks very much
>
> joel
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list