Hi pamela! Yes, I have seen that great example. It helped me to test my implementation of countries selection with some effects such as fading when selection is gone. But there is more info in our KML-s than just borders, namely id for linking with other database objects in system, so those shapes are of no help for me in this task.
But I was able to add partial MultiGeometries support to GoogleMapsAPIUtilityLibrary. Next to create complex polygons from MultiGeometry I had to write PolylineEncoder as there is no way to create such polygons just with array of points. Then the task was as simple as calling Polygon.fromEncoded(). And it works actually! By the end of this project, I believe there will be more complete support for MultiGeometries (there is not only countries we are dealing with now, you know). Very helpful for me was KMLParser example. In fact most of the debugging was done by using it with my MultiGeometries implementation. On Sep 22, 9:39 am, "pamela (Google Employee)" <[EMAIL PROTECTED]> wrote: > Hi abr-- > > Can you use the data used in the example in this article, which > creates polys out of country border > data?http://gvlt.wordpress.com/2008/05/17/tutorial-thematic-mapping-with-t... > > - pamela > > > > On Sat, Sep 20, 2008 at 12:45 PM, abr <[EMAIL PROTECTED]> wrote: > > > I managed to find boundaries in KML-format. Actually it is a > > requirement now for my application to use KML-files loaded from > > server. Only if it were so easy... Only if all countries were just > > polygons... But Russia is not, and USA and Denmark and many others too > > - they consist of multiple polygons (MultiGeometry in KML). Only KML- > > parser I managed to find (Kml22 in GoogleMapsAPIUtilityLibrary.swc: > >http://gmaps-utility-library-flash.googlecode.com/svn/trunk/docs/inde... > > ) does not understand tag <MultiGeometry> (and any of its children > > consequently). > > > It seems, I am into a bad luck of writing some hardcoded parser just > > for my countries (fortunately they consist only of polygons and > > nothing else)... > > > On 17 сент, 15:02, abr <[EMAIL PROTECTED]> wrote: > >> Well, I agree that geocoding can help me determine the country name. > >> But I won't be able to highlight that country without shapes. > > >> On Sep 17, 2:34 pm, Javier de la Torre <[EMAIL PROTECTED]> wrote: > > >> > Have you try geocoding your mouse position? > >> > It should give you the country information. > > >> > Or you want to know dynamically on the client? > > >> > Javier. > > >> > On Sep 17, 2008, at 12:30 PM, abr wrote: > > >> > > Hello everyone! > > >> > > In my Flex app I want to be able to determine in which country mouse > >> > > event occured. Also, I need to be able to highlight some countries > >> > > (selected by user). As I believe, I have to find some sort of shapes > >> > > for each country (and also subdivisions for some countries). The > >> > > problem is - shapes must match those on Google Maps. As I have seen, > >> > > Google Maps includes political boundaries for countries. Is there some > >> > > way to get those (in KML or any other reasonable format, which can be > >> > > displayed as or converted to flash)? > > >> > > Maybe you have any suggestions as to where can I find country shapes?- > >> > > Hide quoted text - > > >> > - Show quoted text -- Скрыть цитируемый текст - > > >> - Показать цитируемый текст -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
