【发布时间】:2014-02-03 08:22:44
【问题描述】:
我有一张地图,其中包含一些步行和自行车路线以及带有一些细节的弹出窗口和图片。现在我想在geojson折线的第一个顶点上设置一个标记,但我不知道如何。顺便提一句。我是传单/地图框的新手,我将我的地图从代码 sn-ps 放在一起。
Here is the map now:
这就是我现在创建折线的方式。我通过 layercontrol 调用它们。
var mtb = L.geoJson(radjs, {
filter: function (feature, layer) {
if (feature.properties) {
// If the property "underConstruction" exists and is true, return false (don't render features under construction)
return feature.properties.typ === 'mtb';
}
return true;
},
style: {
"color": '#6699cc',
dashArray: '',
"weight": 4,
"opacity": 0.6
}, onEachFeature: onEachFeature2}).addTo(rad);
感谢您的帮助, 马克
【问题讨论】: