-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Unable to change transparency on TileOverlay on Android #565
Comments
I've had a chance to look at this further... setting the tileOverlay transparency via What I'm doing is animating weather radar on a map, getting the 6 most recent radar images and alternating the transparencies to create the animation. My code was based on this question - note the different tileProvider implementations between iOS and Android. This code works just fine on iOS, and is similar to the code referenced above:
The same code on Android returns images that are all identical. I believe it has to do with how the URL is composed in the tileProvider callback, and that the same timestamp is used for all images. I suspect this because it would explain all the images being the same, and because the sample code for Android referenced above has a specific method for setting the url to be returned, When I try using this code with the
when I try to add the tileOverlay:
So, the question now becomes is there a way to modify the url returned by the tileProvider callback on Android? |
In an effort to answer my question above, I'm attempting to patch the
The problem is that in |
I'm migrating from the
kefahB/nativescript-google-maps
plugin to@nativescript/google-maps
.My app animates weather radar by composing an array of
TileOverlay
s and then iteratively changing theTileOverlay
's transparency to hide one overlay and display the next.While
transparency
can be specified in theTileOverlayOptions
when creating aTileOverlay
, it can't be modified directly afterwards. Instead, you have to use native methods, such as on iOS:On Android, there's:
But this seems to have no effect. I can see in the debugger and via
tileOverlay.native.getTransparency()
that the nativeTileOverlay
's transparency property has indeed been changed, but there is no change in the display.The text was updated successfully, but these errors were encountered: