move tooltipAnchor and popupAnchor defaults from Marker to Icon
This commit is contained in:
parent
031ff12873
commit
5c2d3d8ebc
@ -73,6 +73,11 @@ export var Icon = Class.extend({
|
||||
* A custom class name to assign to both icon and shadow images. Empty by default.
|
||||
*/
|
||||
|
||||
options: {
|
||||
popupAnchor: [0, 0],
|
||||
tooltipAnchor: [0, 0],
|
||||
},
|
||||
|
||||
initialize: function (options) {
|
||||
setOptions(this, options);
|
||||
},
|
||||
|
@ -349,11 +349,11 @@ export var Marker = Layer.extend({
|
||||
},
|
||||
|
||||
_getPopupAnchor: function () {
|
||||
return this.options.icon.options.popupAnchor || [0, 0];
|
||||
return this.options.icon.options.popupAnchor;
|
||||
},
|
||||
|
||||
_getTooltipAnchor: function () {
|
||||
return this.options.icon.options.tooltipAnchor || [0, 0];
|
||||
return this.options.icon.options.tooltipAnchor;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user