Hi,
First post, so apologies if the 'etiquette' isn't quite right.
I have a Google Maps API and am using ExtInfoWindow to display a small
image in a text box overlaid on my map. Having got this working, the
Map Control options for Map, Satellite and Hybrid have now disppeared
from the top right of the Map and I'd like to reinstate the feature.
Any pointers on what I have done wrong would be of great assistance.
<script src="src/extinfowindow.js" type="text/javascript"></
script>
<script type="text/javascript">
var map;
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
G_PHYSICAL_MAP.getMinimumResolution = function ()
{ return 7 };
G_NORMAL_MAP.getMinimumResolution = function ()
{ return 7 };
G_SATELLITE_MAP.getMinimumResolution = function ()
{ return 7 };
G_HYBRID_MAP.getMinimumResolution = function ()
{ return 7 };
G_PHYSICAL_MAP.getMaximumResolution = function ()
{ return 13 };
G_NORMAL_MAP.getMaximumResolution = function ()
{ return 13 };
G_SATELLITE_MAP.getMaximumResolution = function ()
{ return 13 };
G_HYBRID_MAP.getMaximumResolution = function ()
{ return 13 };
var point = new GLatLng(<?=$arr['latitude'];?>, <?=$arr
['longitude'];?>);
map.setCenter(point, 10);
map.addControl(new GLargeMapControl());
var Icon = new GIcon;
Icon.image = "images/extinfowindow/marker.png";
Icon.iconSize = new GSize(48, 48);
Icon.iconAnchor = new GPoint(24, 24);
Icon.infoWindowAnchor = new GPoint(84,12);
marker = new GMarker( point, Icon);
GEvent.addListener(marker, 'click', function(){
marker.openExtInfoWindow(map,"extInfoWindow_coolBlues","<div
align='center'><br /><img src=images_property/<?=$ar_pic['name_photo']?
> alt='<?=$arr['ref']?>' border=1 width=90 /><br /><b><?=$arr['ref']?
></b></div>");
});
map.addOverlay(marker);
GEvent.trigger(marker,'click');
}
}
</script>
The map can be viewed at
http://www.abpc-thailand.com/?p=detail&id=34176&lang=
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---