On Oct 6, 10:55 am, Tak <[email protected]> wrote:
>
> I have a bunch of photos on my Web site.  Pictures' EXIF contain
> Longitude/Latitude
> as the geotag.  Am writing a Java script code that displays a map and
> flag to show
> the location of the picture, using this Google Static Maps API.
>
> So far so good. I could display them, however, there is no scale
> control options.
> I cannot expand the area nor shrink to see wider area.

Static Maps are static. They don't zoom: you specify a fixed zoom
level (12 in your case).

To change what is shown you need to get a new image with a different
zoom. If you don't know what zoom level you need, leave out zoom= and
use visible= to specify points which must be included in the image:
http://code.google.com/apis/maps/documentation/staticmaps/#Viewports

That example uses addresses, but you can use lat,lng pairs instead of
each address if that's easier.

http://maps.google.com/maps/api/staticmap?center=34.979279,135.9052435&size=800x800&markers=color:blue|label:P|34.979279,135.905243&sensor=false&visible=30,135|35,136
(The Groups interface may break that: if that happens, try
http://tinyurl.com/28bze6m instead). That map shows your marker, but
also ensures that coordinates (30,135) and (35,136) are visible,
setting the zoom accordingly.

-- 
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.

Reply via email to