});
noteLayer.on('click', function(e) {
- OSM.route('/browse/note/' + e.layer.id);
+ if (e.layer.id) {
+ OSM.router.route('/note/' + e.layer.id);
+ }
});
function updateMarker(marker, feature) {
} else {
marker = L.marker(feature.geometry.coordinates.reverse(), {
icon: noteIcons[feature.properties.status],
- opacity: 0.9,
+ opacity: 0.8,
clickable: true
});
marker.id = feature.properties.id;