admin管理员组文章数量:1277273
I need to divide USA map into political boundaries. i.e. states and in seven Regional boundaries on Google map. Each region will have its own color. Example, California, Hawaii, Nevada, Utah, Arizona and Colorado (Southwestern US) will all be same color. Political boundaries will also be on map along with regional boundaries. On national view only regional names should be visible and no state name. On zooming in to region state names will be shown, no city name should be visible either I zoom in or out.
Can you please help me understanding that from where should I start? Links? Tutorial?
Do I need an Image to put on map as overlay.
I am really not getting it.
If you want to close this question then please help me that what is the forum to ask this so I put it there?
I need to divide USA map into political boundaries. i.e. states and in seven Regional boundaries on Google map. Each region will have its own color. Example, California, Hawaii, Nevada, Utah, Arizona and Colorado (Southwestern US) will all be same color. Political boundaries will also be on map along with regional boundaries. On national view only regional names should be visible and no state name. On zooming in to region state names will be shown, no city name should be visible either I zoom in or out.
Can you please help me understanding that from where should I start? Links? Tutorial?
Do I need an Image to put on map as overlay.
I am really not getting it.
If you want to close this question then please help me that what is the forum to ask this so I put it there?
Share Improve this question asked Jun 23, 2011 at 14:41 KashifKashif 14.4k18 gold badges69 silver badges100 bronze badges 1- Usually the first step is making your own attempt at a solution, posting it, and explaining exactly how it doesn't work. – Matt Ball Commented Jun 23, 2011 at 14:43
1 Answer
Reset to default 6I need to divide USA map into political boundaries. i.e. states and in seven Regional boundaries on Google map. Each region will have its own color.
You can do this with a relatively simple polygon overlay. You'll need to obtain polygon data for each region of interest from a third party since the API does not provide any.
On zooming in to region state names will be shown, no city name should be visible either I zoom in or out.
This starts to get more plicated. Probably best done using a custom map type (see image map types) if you don't want to see features like city names.
See also
- Google Maps w/ counties overlay?
- http://maps.forum.nu
- State polygon overlay example (for API v2)
- MapTiler - Map Tile Cutter
- Polymaps - a personal favorite alternative to Google Maps, with a really slick API
本文标签: javascriptGoogle map divided in regions with color and in subregionsStack Overflow
版权声明:本文标题:javascript - Google map divided in regions with color and in subregions - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741202380a2357483.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论