Google Maps v3 Javascript:geojson覆盖城市和国家名称 [英] Google Maps v3 Javascript: geojson overlays city and country names

查看:265
本文介绍了Google Maps v3 Javascript:geojson覆盖城市和国家名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将一些geojson数据(多边形特征)添加到Google Map中。是否可以在城市和国家名称下面添加geojson?

I´m adding some geojson data (polygon features) to a Google Map. Is it possible to add the geojson below the city and country names?

map.data.addGeoJson(data);

推荐答案

城市名和国家名在地图上显示。

GeoJSON数据总是出现在地图图块上。

The city and country names are on the map tiles.
The GeoJSON data always appears over the map tiles.

您可以使用 Styled Map
,然后在GeoJSON图层上覆盖您自己的城市和国家/地区名称。

You can hide the city and country names on the map tiles using a Styled Map, then overlay your own versions of the city and country names over the GeoJSON layer.

这篇关于Google Maps v3 Javascript:geojson覆盖城市和国家名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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