Here is a .KMZ file of the world, open it with Winzip to fetch
the .KML file with the polygons:
http://bbs.keyhole.com/ubb/ubbthreads.php?ubb=showflat&Number=289717&site_id=1#import

States of the USA:
http://bbs.keyhole.com/ubb/ubbthreads.php?ubb=showthreaded&Number=312795&site_id=1#import

Displaying the polylines  / polygons at various zoomlevels might be a
challenge though, as the polylines are of great detail (lots of
coordinates). You might want to simplify and encode the polylines to
increase performance. Currently I am trying to render the optimized
polylines using the Google Maps Flash API.  You have to use a custom
overlay however, otherwise an overlay is created for each state or
country you add to your map, which significantly decreases perfomance,
also see:
http://groups.google.com/group/google-maps-api-for-flash/browse_thread/thread/52dc36c1a82ba119/1c43904906ce4af6?#1c43904906ce4af6

Maybe we can share experiences, the following functionality I have
currently implemented in PHP, which is accessed by Adobe Flex using
the Zend_Amf component of the Zend Framework.

Encoding polylines:
http://code.google.com/intl/nl-NL/apis/maps/documentation/polylinealgorithm.html
http://code.google.com/intl/nl-NL/apis/maps/documentation/polylineutility.html

Simplification of polylines:
http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm

Zend_Amf (PHP <> Adobe Flex bridge)
http://framework.zend.com/manual/en/zend.amf.introduction.html

Cheers!

On Jan 21, 4:08 pm, gRaNdEpInNa <[email protected]> wrote:
> I think the solution that requires the minor effort (even the most "human")
> is the second one. It's very difficult, however, to find someone who gives
> you SHP for every state in the world.
> The only one I found is this 
> one:http://davidlynch.org/js/maphilight/docs/demo_world.html
> Do you know someone else?
> thanks ,
> Davide
>
> 2010/1/20 Jonathan Wagner <[email protected]>
>
>
>
>
>
> > There is a couple different ways you could do it, the easiest would be
> > to draw the highlight with a polygon, this would require getting the
> > points from somewhere and loading them. If you're willing to use third
> > party libraries you could possibly also use another format such as SHP
> > to show the state.
>
> > Jonathan
> > Scribblemaps.com
>
> > On Jan 20, 11:05 am, grandepinna <[email protected]> wrote:
> > > Hi,
> > > I would like to know if there is a Google Map API to highlight a
> > > single state. I need this for a statistical purpose.
> > > My final target is to release some statistic related to single state
> > > and highlight the state colour on the base of the number associated to
> > > the country.
> > > Thanks,
>
> > > Davide
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps API For Flash" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-maps-api-for- 
> > flash%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-api-for-flash?hl=en.
>
> --
> WEB:http://www.grandepinna.tk
> MSN: [email protected]
> skype: grande.pinna
>
> In principio dunque fu Caos, poi Gaia dall'ampio seno, sicura ed eterna sede
> per tutti gli immortali che abitano la nervosa vetta dell'Olimpo, e Tartaro,
> denso di nebbia, negli anfratti della terra dalle ampie vie. Vi fu poi Eros,
> il più bello tra gli immortali, che a tutti gli uomini e gli dei dona saggi
> consigli nel petto e nel cuore. Da Caos nacquero Erebo e la Notte, che,
> unita a Erebo in amore concepì Etere e Giorno.
>
> (Esiodo, Teogonia)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en.

Reply via email to