Google maps 谷歌地图如何在地图上方添加地图标签
我使用GoogleMapAPI和MapLabel添加文本,如何在地图上方添加文本。现在我在地图下发短信 地图标签功能:Google maps 谷歌地图如何在地图上方添加地图标签,google-maps,Google Maps,我使用GoogleMapAPI和MapLabel添加文本,如何在地图上方添加文本。现在我在地图下发短信 地图标签功能: var mapLabel = new MapLabel({ text: 'Test0000001', position: new google.maps.LatLng(61.52401, 105.31875600000001), map: map, fontSize: 100, align: 'center'
var mapLabel = new MapLabel({
text: 'Test0000001',
position: new google.maps.LatLng(61.52401, 105.31875600000001),
map: map,
fontSize: 100,
align: 'center'
});
完整代码JSIDLE:您需要替换
maplabel.js
文件中的一行:
从
致:
很有效,谢谢:)
mapPane.appendChild(canvas);
floatPane.appendChild(canvas);