gpt4 book ai didi

google-maps - 样式化 Google map - Javascript API v3 - 海岸线轮廓?

转载 作者:行者123 更新时间:2023-12-04 04:35:39 25 4
gpt4 key购买 nike

我正在尝试设计 Google map 的样式以匹配我得到的设计,并且在设计上有一个围绕所有国家/地区外部的笔划,以及划分边界的笔划。

我要达到的效果如下:
enter image description here

我的样式代码目前如下:

var styles =   [
{
featureType: "water",
stylers: [
{ visibility: "on" },
{ color: "#ffffff" }
]
},{
featureType: "landscape",
stylers: [
{ color: "#f7f7f5" }
]
},{
featureType: "road",
stylers: [
{ visibility: "off" }
]
},{
featureType: "poi",
stylers: [
{ visibility: "off" }
]
},{
featureType: "administrative.country",
stylers: [
{ color: "#d2cdcd" },
{ weight: 1 }
]
},{
featureType: "administrative.country",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
},{
featureType: "administrative.province",
elementType: "geometry",
stylers: [
{ visibility: "off" }
]
},{
featureType: "administrative.locality",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
},{
featureType: "administrative.province",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
},{
featureType: "water",
elementType: "geometry.stroke",
stylers: [
{ color: "#4cfff5" }
]
}
];

知道我在追求什么吗?

谢谢!

编辑:上述样式给了我以下

enter image description here

最佳答案

您目前只能定义水的填充,而不能定义轮廓。

关于google-maps - 样式化 Google map - Javascript API v3 - 海岸线轮廓?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11327019/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com