简体   繁体   English

Google Maps v3 Javascript:geojson覆盖城市和国家/地区名称

[英]Google Maps v3 Javascript: geojson overlays city and country names

I´m adding some geojson data (polygon features) to a Google Map. 我正在向Google Map添加一些geojson数据(多边形要素)。 Is it possible to add the geojson below the city and country names? 是否可以在城市和国家/地区名称下方添加geojson?

map.data.addGeoJson(data);

在此处输入图片说明

The city and country names are on the map tiles. 城市和国家/地区名称在地图图块上。
The GeoJSON data always appears over the map tiles. 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. 您可以使用“ 样式化地图”在地图图块上隐藏城市和国家名称,然后在GeoJSON图层上覆盖您自己的城市和国家名称版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM