Geographical boundaries of states/provinces -> Google Maps Polygon

前端 未结 4 1118
灰色年华
灰色年华 2020-11-28 20:23

I\'m building a web application that is going to dynamically highlight certain U.S. states and Canadian provinces on a Google Map, based on buttons and click events.

4条回答
  •  余生分开走
    2020-11-28 20:42

    Old question but you can get a more detailed set of points for each US state border from the google website at https://developers.google.com/kml/documentation/us_states.kml

    It needs a little bit of parsing of the xml though.

提交回复
热议问题