当我不使用GIcon()时,位置点显示正确。但是,当我使用GIcon()时,位置显示在错误的位置。以下是我的代码:
<script language="javascript">
var Icon = new GIcon();
Icon.image = "images/myicon.png";
Icon.iconSize = new GSize(10, 10);
Icon.iconAnchor = new GPoint(5, 34);
Icon.infoWindowAnchor = new GPoint(5, 2);
var markers = [{'latitude': 169.132892, 'longitude': -44.698667, 'name': 'dsfsdfljsldk' }]; var map;
var centerLatitude = 18.17;
var centerLongitude = 127.57;
var startZoom = 2;
</script>
var map; var centerLatitude = 18.17; var centerLongitude = 127.57; var startZoom = 2; </script> - user75472