On Feb 17, 11:22 am, paki ch <[email protected]> wrote:
> sorry this is the link which i was talking abt
>
> http://www.ezstate.com/beta/index.php?content=cat_listings&cat_id=4
>
> please check and suggest me how can i make the marker appear in the center.I
> use the optional size parameter bt it doesn make any difference.
That's funny. It works for me in a local copy of your page.
Don't see it there:
<script type="text/javascript">
//<![CDATA[
var map = new GMap(document.getElementById(33));
var longitude = document.getElementById('longitude').value;
var latitude = document.getElementById('latitude').value;
map.centerAndZoom(new GPoint(longitude, latitude), 3);
//map.addControl(new GLargeMapControl());
var point = new GPoint(longitude, latitude);
var marker = new GMarker(point);
map.addOverlay(marker);
//]]>
</script>
Also, GMap is not the same as GMap2:
http://code.google.com/apis/maps/documentation/upgrade.html#Upgrade
Also, you redefine the "map" variable for all the maps on your page;
you should make it unique for each map (i.e. var map33).
-- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---