Use the parameters from the layer if possible.#4
Use the parameters from the layer if possible.#4SebastianStehle wants to merge 1 commit intoderekeder:masterfrom SebastianStehle:master
Conversation
|
Thanks for this contribution @SebastianStehle! Could you give a little more description for these changes? Do you know when it wouldn't be possible to get the Also, what's the purpose of the |
| var containerPos = findElPos(me.getMap().getDiv()); | ||
| var tol = opts.tolerance || 6; | ||
|
|
||
|
|
There was a problem hiding this comment.
let's remove these extra line breaks
|
I dont think that there is any case where you dont want to use the parameters from the layer. You want to have the tooltips for the data you display, so it should be the same parameters, isnt it? ;) It is always a good idea to follow the DRY principle. I have a scenario where I use multiple layers and turn them on and off after user interactions. Therefore it was really helpful to have a method hasMapTips and also to make the disableMapTips a little bit more stable. |
No description provided.