On May 19, 5:53 am, "[email protected]" <[email protected]> wrote: > Im using google maps in a directory with the following URL; > > echo "<img src='http://maps.google.com/maps/api/staticmap? > zoom=15&size=400x400&markers=color:blue|label:EXAMPLE| > $postcode&sensor=false' class='default'>Map</a></p><br>" > > everything works fine. What is the easiest way to add a pan zoom > control to this map, or even a pan zoom beneath control panel would be > nice. I have read googles examples but couldnt really get my head > around them.
There isn't an easy way, because static maps are just that: static. They are simply pictures which are specified by the parameters in the url. It would be possible to add within your HTML "+" and "-" buttons (say) and even "left-right-up-down" buttons which fetch a different image. Calculating the centre-point of an adjacent image isn't particularly straightforward. If you want maps which mimic the API and its zoom/pan capabilities, you should really be using the API. Or, instead of an image, use an iframe and embed a Google Map -- one of the options at the top-right of a Google Map is "embed" which provides something suitable. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
