cordova-plugin-googlemaps icon indicating copy to clipboard operation
cordova-plugin-googlemaps copied to clipboard

TileOverly position not correct

Open mrbdrm opened this issue 5 years ago • 6 comments

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 localhost-8004-index-html
upload image on internet

mrbdrm avatar Aug 15 '20 10:08 mrbdrm

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.

wf9a5m75 avatar Aug 15 '20 14:08 wf9a5m75

here is the same but using google maps js (no issues here) localhost-8004-map-html

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
            });

mrbdrm avatar Aug 15 '20 15:08 mrbdrm

I see. The source code is fully open. Please debug the code, and send me a pull request

wf9a5m75 avatar Aug 15 '20 16:08 wf9a5m75

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

mrbdrm avatar Aug 15 '20 17:08 mrbdrm

Ah, sorry. I'm super busy. In the future, I will fix, but not soon.

wf9a5m75 avatar Aug 15 '20 17:08 wf9a5m75

No problem. Thank you for your hard work.

mrbdrm avatar Aug 15 '20 17:08 mrbdrm