On AIR with Flex

Tag: Coordinates

Maps : Zoom into appropriate location

by on Oct.04, 2009, under Code Snippets, Javascript

Visitors end up seeing the entire world on the map when GeoCoordinates are not available.

There are two ways to combat this,

Either position map (calculate longitude) based on the timezone from system date,
The entire map is still seen, but the map is positioned with the visitors location at the center.

Below is the map show to a visitor from northern South America, instead of all continents.
mapsCentered

Here is how to do it,
(continue reading…)

9 Comments :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!