crosshair cursor instead of marker
This commit is contained in:
parent
a732dfdd98
commit
53587c865b
2 changed files with 13 additions and 4 deletions
|
|
@ -88,8 +88,8 @@ td {
|
|||
width: 92.5px;
|
||||
}
|
||||
|
||||
.leaflet-container {
|
||||
cursor: auto;
|
||||
.routing-draw-enabled {
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
/* left sidebar as additional control position */
|
||||
|
|
|
|||
|
|
@ -1,17 +1,26 @@
|
|||
BR.Routing = L.Routing.extend({
|
||||
options: {
|
||||
/* not implemented yet
|
||||
icons: {
|
||||
/* not implemented yet
|
||||
start: new L.Icon.Default({iconUrl: 'bower_components/leaflet-gpx/pin-icon-start.png'}),
|
||||
end: new L.Icon.Default(),
|
||||
normal: new L.Icon.Default()
|
||||
},*/
|
||||
*/
|
||||
draw: false
|
||||
},
|
||||
snapping: null
|
||||
},
|
||||
|
||||
onAdd: function (map) {
|
||||
var container = L.Routing.prototype.onAdd.call(this, map);
|
||||
|
||||
this._draw.on('enabled', function() {
|
||||
L.DomUtil.addClass(map.getContainer(), 'routing-draw-enabled');
|
||||
});
|
||||
this._draw.on('disabled', function() {
|
||||
L.DomUtil.removeClass(map.getContainer(), 'routing-draw-enabled');
|
||||
});
|
||||
|
||||
// enable drawing mode
|
||||
this.draw(true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue