The main difference between your site and the reference site, (funda.nl), is that they are loading one polygon at a time, while you are loading them all together.
The border outline polygons that you can see all the time are custom tiles: http://images.funda.nl/tiles30/map/7/65/42.png and then, when you move the mouse, a single polygon for the region in question is loaded. A mouseover event handler can be written to do point-in-polygon analysis and detect what region the mouse is in. You'd only need to load the coordinate values of the polygons and loop them to find out what polygon you're in. As long as you're only doing number crunching, and not displaying lots of objects on the screen, javascript can perform very well. -- Marcelo - http://maps.forum.nu -- On Jun 23, 2:54 pm, Niko <[email protected]> wrote: > Hi team, > > First, this is my gmap page :http://massaliavida.free.fr/map/mapkml.html > > I need your help in order to get the same rendering with polygon > mouseover as this Gmap application > :http://www.funda.nl/koop/kaart/#/heel-nederland/ > > With firefox, I can get something usable and it doesn't take too much > time to change fill and stroke style of polygons on mouseover even if > it is not the perfect result I saw on funda website, but with IE, it > is too long (even with already encoded > polyshttp://massaliavida.free.fr/map/mapkml2.html > ). > I am using encoded polys generated with Dyas' GeoXml parser from a php > generated KML file. > > My polys are complex but they are the exact shape of Marseille > (France) areas. If I reduce the number of points I imagine that it > will be more reactive on mouseover, but I don't know a simple way to > do that in order to keep the right shapes (approximatively) and to be > sure that there is no blank areas between polys or one above another. > I saw effective shp file simplication, but I don't know if I can apply > it to my polys (there is a lot of shared sides of polys and they are > really complex), I also need to convert my KML and manage a lot of > things around that (I imagine) with complex softs. > I think this is a thing I have to do but I don't know the best way to > do it. > > Next, I really don't know where to go with it, I saw on the group > that an encoded poly may have less reactivity than a normal one, but > with non encoded the whole map is laggy (dragging is awful) and > mouseover not really faster (I tested it). > > Is there a specific API version to use in order to get the behavior I > want? > > I really need advices in order to get the same "pro" result (with > mouseover) as on the funda site. > Thanks in advance for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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 -~----------~----~----~----~------~----~------~--~---
