Skip to content

Conversation

@pacharya-ct
Copy link

No description provided.

@crotwell
Copy link
Owner

Not sure I understand how this would work. It looks like the tooltipoptions is passed into drawStationLayer(), but when that method is called from within draw() it is not passed as an arg? So I think this, as coded, can never do anything?

Am I misunderstanding something?

@pacharya-ct
Copy link
Author

I do not call draw after the initial setup. I use drawStationLayer and drawQuakeLayer to update individual layers. And the tooltip styling works.

@crotwell
Copy link
Owner

That seems dangerous as you can't be sure that some later event, like a resize, won't call redraw() in the superclass, which then calls draw() on the map, and draw() doesn't pass any args to drawStationLayer, effectively deleting the tooltips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants