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) {
|
||||
this._latlng = latlng;
|
||||
//TODO override default options
|
||||
L.Util.extend(this.options, options);
|
||||
},
|
||||
|
||||
onAdd: function(map) {
|
||||
|
@ -8,8 +8,8 @@ L.Popup = L.Class.extend({
|
||||
autoPanPadding: new L.Point(5, 5)
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
//TODO override default options
|
||||
initialize: function(options) {
|
||||
L.Util.extend(this.options, options);
|
||||
},
|
||||
|
||||
onAdd: function(map) {
|
||||
@ -32,6 +32,7 @@ L.Popup = L.Class.extend({
|
||||
this._adjustPan();
|
||||
|
||||
this._container.style.visibility = '';
|
||||
|
||||
this._container.style.opacity = '1';
|
||||
//TODO fix ugly opacity hack
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user