简体   繁体   中英

What is the best way, in Angular 2, to make a map with clickable country boundaries in Google Maps?

I am using the Google Maps api to create a simple map, where the country borders will highlight on mouseover, and will have the ability have a click event.

I have looked at the Google maps Fusion tables, and various questions on Stack Overflow, but have not found a good solution that works well for Angular 2.

The Angular 2 google maps documentation seems pretty incomplete, so it seems like using the vanilla google maps docs in an Angular 2 context might be better.

Any ideas? :)

Leaflet.js具有良好的Angular2集成,可以满足您的需求(在所需的详细信息级别的geojson中添加国家/地区边界层)。

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