世界地图,数据显示为Web应用程序的热图 [英] World map with data display as a heat map for a web application

查看:331
本文介绍了世界地图,数据显示为Web应用程序的热图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何工具包/图书馆可以生成世界地图并以热图方式叠加数据(例如Google的。您可以使用 javascript API 重叠一个kml文件。最终结果是一个谷歌地图,您可以嵌入到您的HTML页面。


Are there any toolkits / libraries which can generate a world map and overlay data in a heat map sort of view (like Google's one on http://www.google.com/insights/search/#geo=&q=wimbledon+-tennis%2Cwimbledon+tennis&cmpt=q)?

I would need to be able to generate and display the map locally, not via some webservice, and would need the output in a browser (i.e. flash or HTMP/Javascript output).

解决方案

These three solutions only work if you're online:

The Google Chart API has a Chart Type of 'map'

you construct the graph by a simple GET request, so it's all in the URL. The result is a static image.

https://chart.apis.google.com/chart?cht=t&chs=440x220&chd=t:0,100,50,32,60,40,43,12,14,54,98,17,70,76,18,29&chco=FFFFFF,FF0000,FFFF00,00FF00&chld=DZEGMGAOBWNGCFKECGCVSNDJTZGHMZZM&chtm=africa&chf=bg,s,EAF7FE

If your data is not tied to nations: the Google Maps API you can draw colored polygons any way you like: example. You can achive this by using the javascript API or by overlaying a kml file. The endresult is a google map which you can embed in your html page.

这篇关于世界地图,数据显示为Web应用程序的热图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆