2017-04-14 69 views

回答

0

HTML

<script async defer 
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"> 
//append jquery map marker js 


<div id="googlemaps"></div> 

腳本

var mapMarkers = { 
          "markers": 
          [ 
           { 
            "latitude": "48.85661", 
            "longitude":"2.35222", 
            "icon": "../wp-content/uploads/2016/08/pin.png" 
           } 
          ] 
         }; 
    $("#googlemaps").mapmarker 
    ({ 
     zoom : 16, 
     center : "48.85661, 2.35222", 
     dragging : 1, 
     mousewheel : 0, 
     markers : mapMarkers, 
     featureType : "all", 
     visibility : "on", 
     elementType : "geometry" 
    }); 
+0

感謝您的反饋蘇雷什。 –

+0

我已經實現了這個功能。但它只是顯示圖像。 –

+0

我想實現內部標記圖像。 –

相關問題