-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added functionnalities remove layer+ url manipulation #2
Conversation
this.map.removeLayer(child_view.tileLayer); | ||
child_view.remove(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
src/widget.ts
Outdated
|
||
tileLayer: TileLayer<OSM>; | ||
this.tileLayer.setSource(newSource); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand what this line is doing here, it seems to be at the same level as the methods and attributes? You may want to remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the line tileLayer: TileLayer to define the type of the tileLayer property, so i can use it later on with this.tileLayer.
Co-authored-by: martinRenou <[email protected]>
Co-authored-by: martinRenou <[email protected]>
Co-authored-by: martinRenou <[email protected]>
Co-authored-by: martinRenou <[email protected]>
Co-authored-by: martinRenou <[email protected]>
Co-authored-by: martinRenou <[email protected]>
No description provided.