overriding default options
This commit is contained in:
parent
8e6f2780cd
commit
0cd810bbb1
@ -8,7 +8,7 @@ L.Marker = L.Class.extend({
|
|||||||
|
|
||||||
initialize: function(latlng, options) {
|
initialize: function(latlng, options) {
|
||||||
this._latlng = latlng;
|
this._latlng = latlng;
|
||||||
//TODO override default options
|
L.Util.extend(this.options, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdd: function(map) {
|
onAdd: function(map) {
|
||||||
|
@ -8,8 +8,8 @@ L.Popup = L.Class.extend({
|
|||||||
autoPanPadding: new L.Point(5, 5)
|
autoPanPadding: new L.Point(5, 5)
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function(options) {
|
||||||
//TODO override default options
|
L.Util.extend(this.options, options);
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdd: function(map) {
|
onAdd: function(map) {
|
||||||
@ -32,6 +32,7 @@ L.Popup = L.Class.extend({
|
|||||||
this._adjustPan();
|
this._adjustPan();
|
||||||
|
|
||||||
this._container.style.visibility = '';
|
this._container.style.visibility = '';
|
||||||
|
|
||||||
this._container.style.opacity = '1';
|
this._container.style.opacity = '1';
|
||||||
//TODO fix ugly opacity hack
|
//TODO fix ugly opacity hack
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user