2016-05-20 6 views
0
map.on('load', function() { 

map.addSource("markers", { 

"type": "geojson", 

     "data": { 
      "type": "FeatureCollection", 
      "features": [{ 
       "type": "Feature", 
       "geometry": { 
        "type": "Point", 
        "coordinates": [4.869929, 50.465887] 
       }, 
       "properties": { 
        "marker-symbol": "pin-2" 
        "id or class?": ".." 
       } 
      }] 
    } 
}); 

答えて

0

あなたのコードに書いたものが良いです、あなたはproperties部分に任意のプロパティを追加できます。

私の例を参照してください。http://codepen.io/poupi/pen/qZeXdK

関連する問題