I'm migrating from the kefahB/nativescript-google-maps plugin to @nativescript/google-maps.
My app animates weather radar by composing an array of TileOverlays and then iteratively changing the TileOverlay's transparency to hide one overlay and display the next.
While transparency can be specified in the TileOverlayOptions when creating a TileOverlay, it can't be modified directly afterwards. Instead, you have to use native methods, such as on iOS:
tileOverlay.native.opacity = 1.0; // display tileOverlay
On Android, there's:
tileOverlay.native.setTransparency(0.0); // display tileOverlay
But this seems to have no effect. I can see in the debugger and via tileOverlay.native.getTransparency() that the native TileOverlay's transparency property has indeed been changed, but there is no change in the display.
I'm migrating from the
kefahB/nativescript-google-mapsplugin to@nativescript/google-maps.My app animates weather radar by composing an array of
TileOverlays and then iteratively changing theTileOverlay's transparency to hide one overlay and display the next.While
transparencycan be specified in theTileOverlayOptionswhen 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.