cordova-plugin-googlemaps
cordova-plugin-googlemaps copied to clipboard
TileOverly position not correct
Hi im using the version 2.7.1 this is my code to add the overlay
var radarLayers[ts] = Wmap.addTileOverlay({
debug: true, // draw the debug information on tiles
opacity: 0.75, // from 0.0 to 1.0
getTile: function (x, y, zoom) {
return ['https://tilecache.rainviewer.com/v2/radar/' + ts + '/256/',
zoom, '/', x, '/', y, '/4/1_0.png'].join('');
}
});
and this is how it shows in the browser and android

upload image on internet
If there is a problem on tilelayer, I should get more reports from other users.
I think the problem is tile images itself. Please confirm using Google Maps JavaScript v3, and if the results are different, please show me them.
here is the same but using google maps js (no issues here)

and here is the code i used
radarLayers[ts] = new google.maps.ImageMapType({
getTileUrl: function(coord, zoom) {
return ['https://tilecache.rainviewer.com/v2/radar/' + ts + '/512/',
zoom, '/', coord.x, '/', coord.y, '/2/1_1.png'].join('');
},
tileSize: new google.maps.Size(256, 256),
opacity: 0.001
});
I see. The source code is fully open. Please debug the code, and send me a pull request
i would if i could. not that good to fix such thing but i will gladly donate if this is fix. this is what i can do
Ah, sorry. I'm super busy. In the future, I will fix, but not soon.
No problem. Thank you for your hard work.