Skip to content
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

Closed
wants to merge 10 commits into from

Conversation

Nour-Cheour10
Copy link
Contributor

No description provided.

.yarnrc.yml Outdated Show resolved Hide resolved
ipyopenlayers/example.py Outdated Show resolved Hide resolved
ipyopenlayers/example.py Outdated Show resolved Hide resolved
ipyopenlayers/example.py Outdated Show resolved Hide resolved
ipyopenlayers/example.py Outdated Show resolved Hide resolved
Comment on lines +89 to +90
this.map.removeLayer(child_view.tileLayer);
child_view.remove();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

src/widget.ts Outdated Show resolved Hide resolved
src/widget.ts Outdated Show resolved Hide resolved
src/widget.ts Outdated

tileLayer: TileLayer<OSM>;
this.tileLayer.setSource(newSource);
Copy link
Member

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.

Copy link
Contributor Author

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.

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