自更改以来,我对使用Google Maps API的成本有两个疑问。
参考https://cloud.google.com/maps-platform/pricing/sheet/上的信息嵌入式地图是免费的,但是Embed Advanced arent ...
1)首先,有人知道两者之间的区别-普通的Embed地图何时成为高级地图?
2)我正在创建具有多个自定义标记和自定义样式的地图-这会算作“嵌入”还是“嵌入高级”? (下面的代码示例)
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
center: {lat: xxxxx, lng: xxxxx},
zoom: 14,
mapTypeControl: false,
styles: [
{
"featureType": "administrative",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#444444"
}
]
},
{
"featureType": "poi",
"elementType": "all",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "road",
"elementType": "all",
"stylers": [
{
"saturation": -100
},
{
"lightness": 45
}
]
},
{
"featureType": "road.highway",
"elementType": "all",
"stylers": [
{
"visibility": "simplified"
}
]
},
{
"featureType": "road.arterial",
"elementType": "labels.icon",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "transit",
"elementType": "all",
"stylers": [
{
"visibility": "off"
}
]
}
]
});
var image = {
url: '',
scaledSize: new google.maps.Size(50, 80)
};
var beachMarker = new google.maps.Marker({
position: {lat: xxxxx, lng: xxxxx},
map: map,
icon: image
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=xxxxxx&callback=initMap" async defer></script>
非常感谢-如果这是一个愚蠢的问题,我们深表歉意!