-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Tile overlay, rebased #595
Conversation
private TileOverlayOptions createTileOverlayOptions() { | ||
TileOverlayOptions options = new TileOverlayOptions(); | ||
options.zIndex(zIndex); | ||
this.tileProvider = new AIRMapUrlTileProvider(256, 256, this.urlTemplate); |
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 think sizes must not be hardcoded, but used as a parameter. Because retina tiles could be 512x512 and bigger.
{ | ||
if (!_urlTemplateSet) return; | ||
self.tileOverlay = [[MKTileOverlay alloc] initWithURLTemplate:self.urlTemplate]; | ||
self.tileOverlay.canReplaceMapContent = YES; |
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.
Here we need a way to specify the tiles size:
self.tileOverlay.tileSize = CGSizeMake(512, 512);
self.tileOverlay.maximumZ = 18;
@spikebrehm I think wee need to add a param for tile sizes. |
@alexHlebnikov good call! Would you be able to create a PR for this? |
This is #143, but rebased off of latest master. There were a bunch of conflicts.
Thanks @cascadian for doing the original work!
iOS
Android
What I don't understand is how, in this example using the Stamen watercolor tiles:
The iOS tiles appear much more high-res than Android. Oh... maybe it's just a pixel density thing on the emulators? That would make sense.
cc: @christopherdro @lelandrichardson @jrichardlai