简体   繁体   中英

Seeking Advice: Javascript replacement of flash element -USA Map

Here's a fictional example of what i'm trying to replace

http://ryanhollingsworth.com/test/map.html

Goal: input a series of state abbreviations and a hex value and have a dynamic map i can update quickly or use php to update on the fly.

I've been looking for a solution for a couple of weeks via google, figured i'd humble myself and ask. I don't want to reinvent the wheel and develop something that's already been done if i don't have to :) Thanks!

https://developers.google.com/chart/image/docs/gallery/new_map_charts应该提供快速简便的解决方案,尽管它有些限制。

I used the Geochart API from google and I was able to create something very similar to your mockup image: http://cmoreira.net/interactive-world-maps-demo/usa-custom-election-map/

The API is very simple to use.

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