简体   繁体   中英

Android Overlays for drawing shapes in Google Maps

I want to draw several shapes (over 40) for separated zones in a city and I am not sure what is the best choice, acctually I am thinking in drawing shapes using:

  • ItemizedOverlay.
  • Overlay: One overlay for all shapes.
  • Overlays: One overlay for each shape.

What do you think?

Thanks in advanced.

I haven't been using ItemizedOverlay so can't say anything about it but if you are to choose between Overlay and Overlays - take one Overlay for all items.

One overlay is one canvas and one draw method. One overlay for each object are multiple canvases and drawing methods. This is pointless.

You should use different overlays only when you create "layers" which can be visible or not (as a whole layer) like Google Satelite or Google Street View.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM