Thanks Mike.
What I've done is added top and bottom images in the created div for
ie and ff;
//ie code
container.innerHTML = '<div style="height:74px; width:19px; ' +loader+
'" ><a href="#"><img src="images/minus.png" style="margin:5px 0 0 3px;
z-index:2; position:absolute;" onclick="zoomdown()"></img></a><a
href="#"><img src="images/plus.png" style="margin:57px 0 0 3px; z-
index:2; position:absolute;" onclick="zoomup()"></img></a></div>';
Then added zoomdown and zoomup functions;
//Zoomdown function
function zoomdown() {
var levelzoom = map.getZoom();
if (levelzoom > 1)
{
map.setZoom(levelzoom-1);
}
else
{
map.setZoom(1);
}
}
Works perfectly! Thanks again!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---