2
$(函數(){ VAR地圖, markerIndex = 0, markersCoords = {};自定義地圖,沒有latLng,如何添加標記?
map = new jvm.WorldMap({
map: 'jilin',
markerStyle: {
initial: {
fill: 'red'
}
},
container: $('#world-map-gdp')
});
map.container.click(function(e){
var latLng = map.pointToLatLng(e.offsetX, e.offsetY);
alert(latLng);
});
$('.jvectormap-zoomin').click(); //放大
});
我使用SVG產生了吉林省中國地圖 我想補充的幾個標記。地圖 但我不能得到的latLng,我不知道爲什麼? 幫助!
@Dean如果某些答案幫助您解決了您的問題,請不要忘記將問題標記爲已回答。 – bjornd 2013-02-21 08:04:43
對不起,我忘了它.. – Dean 2013-02-26 06:45:10
當加載地圖顯示名稱時,而不是當鼠標懸停時 。我想要顯式的名稱,我該如何做到這一點? – Dean 2013-02-27 02:46:11