mapbox / owlviewer

A changeset browser for https://github.com/ppawel/openstreetmap-watch-list
9 stars 10 forks source link

Points (nodes) are not rendered in changeset geometry #14

Open ppawel opened 11 years ago

ppawel commented 11 years ago

It's because the following code in the GeoJSON layer initialization:

 pointToLayer: function(featureData, latlng) {
        return new L.Polyline([latlng]);
    },

Apparently, polyline with one point is not rendered (as probably it is not valid).

lxbarth commented 11 years ago

This was a quick stop gap to avoid having leaflet standard markers show up on the map. Needs fixing.