On Aug 21, 3:17 pm, Adriano Ellero <[email protected]> wrote: > > what is the suggested way? icon or polyline circles?
The API is designed for icons of basically a fixed size as markers for a point. Because markers define a point, they are the same size no matter what zoom level is shown. To define an area which can change size on-screen as the zoom changes, the API provides polygons. The API is optimised to redraw polygons on changing zoom level. The API doesn't make it easy at all to resize marker icons on-the-fly (for example, on changing zoom). You can specify the size **when the icon is created** but not change it later on. This means that instead of a single polygon object which you can leave to the API display, you need to have a number of different markers which you need to control -- or use a marker manager to control. That introduces heavier code. Another issue is that circles on the ground aren't circles on the map, they are egg-shaped because the projection stretches them. The amount of stretch varies with latitude, so icon-circles will never be accurate. Drawn polygons will always be accurate (if an odd shape). I would suggest not subverting the design of the API, at least not in this instance. The objects are there for their particular purpose. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
