澳大利亚郊区的谷歌地图阴影 [英] Google Maps Shading of Australian Suburbs

查看:31
本文介绍了澳大利亚郊区的谷歌地图阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种方法,根据我的输入用不同颜色对澳大利亚郊区进行着色.不确定如何使用 Google Maps API 执行此操作.谷歌地图有澳大利亚郊区的边界,我想告诉谷歌地图根据我的指示给每个郊区涂上不同的颜色.我对如何做到这一点非常开放.

I need a way to shade Australian suburbs in different colours based on my input. Not sure of how to do this with Google Maps API. Google maps has Australian suburbs boundaries and I want to tell Google Maps to shade each Suburb a different colour based on my instruction. I am very very open to how to do this.

我的目标是制作一个具有不同颜色的郊区互动的谷歌地图.您可以缩小并查看一个区域,看看是否有相同或不同颜色的郊区.关键将基于房价中值、房屋销售量、人口统计等因素.

My goal is to have a Google Map that is interactive that has suburbs shaded different colours. You can zoom out and look across a region and see if there are suburbs in common or with different colours. The key would be based on things like Median house price, house sale volumes, demographics etc.

为什么:这样做有 3 个原因.

Why: There are 3 reasons to do this.

  1. 在 PowerPoint 报告中放置屏幕截图
  2. 向客户发送链接,并向他们展示使用不同信息编码的区域
  3. 将来构建一个系统,将其从数据库中提取并生成为门户网站的一部分

方法:我有一个电子表格,其中包含以下信息:Cherrybrook、Red、Castle Hill、Blue、Kellyville、Pink(或 HTML 颜色或数字 - 可以生成任何所需的格式).

How: I have a spreadsheet with information like: Cherrybrook, Red, Castle Hill, Blue, Kellyville, Pink (or HTML colours, or numbers - whatever the format required can be generated).

如果可能,我还想根据郊区的颜色标记郊区(这可能是 Google 地球的功能).

If possible I also want to label the suburbs based on the colour that they become (this may be a Google Earth feature).

推荐答案

您或许可以使用 Polygon 类,但对一次可以显示的多边形数量存在性能限制.如果您一次只显示一个都市区,可能没问题.

You might be able to use the Polygon class, but there are performance limits on how many polygons you can show at once. If you only show one metro area at a time, you might be okay.

更有可能的是,您想要创建图块.看https://developers.google.com/maps/documentation/javascript/overlays有关磁贴的文档.

More likely, you will want to create tiles. See https://developers.google.com/maps/documentation/javascript/overlays for documentation on tiles.

这个功能非常强大.例如,您可以看到我和一个朋友制作的网站,该网站使用以下磁贴按人口普查区域显示澳大利亚 2006 年人口普查数据:http://sunburntpeople.com/census/

This is very powerful. You can see, for example, a web site I and a friend made which shows Australian 2006 census data by census tract by using tiles at: http://sunburntpeople.com/census/

这篇关于澳大利亚郊区的谷歌地图阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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