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

allow basemap tiles configuration #127

Merged
merged 1 commit into from
Dec 8, 2022
Merged

Conversation

wang-boyu
Copy link
Member

Implements #48 and #66.

@wang-boyu wang-boyu added this to the v0.5.0 milestone Dec 3, 2022
@codecov
Copy link

codecov bot commented Dec 3, 2022

Codecov Report

Base: 78.58% // Head: 79.44% // Increases project coverage by +0.86% 🎉

Coverage data is based on head (9f5b191) compared to base (99eeec3).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #127      +/-   ##
==========================================
+ Coverage   78.58%   79.44%   +0.86%     
==========================================
  Files           8        9       +1     
  Lines         621      647      +26     
  Branches      132      137       +5     
==========================================
+ Hits          488      514      +26     
  Misses        116      116              
  Partials       17       17              
Impacted Files Coverage Δ
mesa_geo/tile_layers.py 100.00% <100.00%> (ø)
mesa_geo/visualization/modules/MapVisualization.py 89.83% <100.00%> (+0.54%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Pre-configured map tiles for the background tile layer of Leaflet map.
"""

OPEN_STREET_MAP = RasterWebTile(
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but I preferred to have the default value from our own repo, instead of using that from xyzservices.

Shall I remove the MapTiles class completely for now?

Copy link
Contributor

Choose a reason for hiding this comment

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

I first need to understand the difference with xyzservices's tiles. If they are the same, I think we shouldn't duplicate it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, these are exactly the same : )

Copy link
Contributor

Choose a reason for hiding this comment

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

In that case, reusing existing ones is better.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I'll remove them then.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated!

@rht
Copy link
Contributor

rht commented Dec 8, 2022

LGTM

@rht rht merged commit 1d3e2fa into projectmesa:main Dec 8, 2022
@wang-boyu wang-boyu deleted the feat/basemap branch December 8, 2022 15:08
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.

None yet

2 participants