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

Tile Layer - Opacity #191

Closed
bFlood opened this issue Sep 16, 2014 · 6 comments
Closed

Tile Layer - Opacity #191

bFlood opened this issue Sep 16, 2014 · 6 comments

Comments

@bFlood
Copy link

bFlood commented Sep 16, 2014

please add getOpacity() and setOpacity() to the TileLayer class

also, would it also be possible to support custom tile layers?

@wf9a5m75
Copy link
Member

@bFlood , Sorry, but Google Maps Android API v2 does not support setOpacity() for TileLayer.
Thus, I can not implement it.

And what is the custom tile layer?
Do you want to show your tile as base tile layer?
Just specify map.setMapTypeId(plugin.google.maps.MapTypeId.NONE);

@bFlood
Copy link
Author

bFlood commented Sep 16, 2014

wow, that's amazing, seems like an odd omission since its supported on groundOveraly in the Android API. thx for the info

iOS supports it, maybe you can use something like this on android side when needed
http://blog.awnry.com/post/88749232734/changing-tileoverlay-opacity-for-androids-google-maps

custom tile layer - this would be useful for custom, in memory drawing to the map (heat maps, dynamic overlays etc.)
on android, someway to implement a custom TileProvider
https://developer.android.com/reference/com/google/android/gms/maps/model/TileProvider.html

on iOS, someway to implement GMSSyncTileLayer
https://developers.google.com/maps/documentation/ios/tiles

@wf9a5m75
Copy link
Member

Thank you for letting me know.
I will consider this.

@wf9a5m75 wf9a5m75 modified the milestone: feature request Dec 4, 2014
wf9a5m75 added a commit that referenced this issue Mar 26, 2015
Add `opacity` property for #191
wf9a5m75 added a commit that referenced this issue Mar 26, 2015
Add `opacity` property for #191
@wf9a5m75
Copy link
Member

I added the opacity property to map.addTileOverlay(), and the setOpacity() method for TileOverlay.

@wf9a5m75 wf9a5m75 modified the milestones: v1.2.5, feature request Mar 26, 2015
@bFlood
Copy link
Author

bFlood commented Mar 26, 2015

thanks! was opacity added to the core android sdk?

@bFlood
Copy link
Author

bFlood commented Mar 26, 2015

nevermind, I see you added the custom tileprovider to handle this on android. thank you masashi, really great work!

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

No branches or pull requests

2 participants