You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, im trying to set this package up with react and fiber, but the tiles that are fetched have wrong coordinates (totally of grid like: "https://a.tile.openstreetmap.org/14/8193/8189.png". i really dont know what im doing wrong here.
maybe the wrong tiles are getting loaded due to zoomlevel, or the scale of the map which is ({"x":40030223.8575236,"y":1,"z":40030223.8575236})
the first tiles that are fetched are actually valid, but i guess they get overwritten. -> you can find a complete console log of the fetched tiles below.
Are there any discord servers where i can ask about such topics? I find it quite hard to get infos about threejs in combination with react...
also: osm is creating that weird tile with red text, not sure what its saying...
Thanks in advance <3 ,
leo
The text was updated successfully, but these errors were encountered:
ji-podhead
changed the title
wrong tile coordinates using react-fibre and fibre/drei
wrong tile coordinates using react-fiber and fiber/drei
Nov 17, 2022
ok im quite sure that the problem comes from the scaling of the plane/sphere.... where is it set? when set the geometry to sphere, its not showing up in viewspace at, all, because the camera is inside the sphere i guess....
ok i solved this by setting the scale of the plane with map.scale.set method. would be awesome if you would add this to the manual, or add a default value of (100,1,100), since the scale-method is not called in your demo and took me 1 day to figure this out :(
hi, im trying to set this package up with react and fiber, but the tiles that are fetched have wrong coordinates (totally of grid like: "https://a.tile.openstreetmap.org/14/8193/8189.png". i really dont know what im doing wrong here.
maybe the wrong tiles are getting loaded due to zoomlevel, or the scale of the map which is ({"x":40030223.8575236,"y":1,"z":40030223.8575236})
the first tiles that are fetched are actually valid, but i guess they get overwritten. -> you can find a complete console log of the fetched tiles below.
Ive tried multiple aproaches:
A) using basic MapControls
https://pastesite.org/view/8628e33c
B) using cubeCamera and OrbitControls, without using mapControls
https://pastesite.org/view/6b900f11
console log of fetched tiles without zooming or panning:
https://pastesite.org/view/fc0e90de
Are there any discord servers where i can ask about such topics? I find it quite hard to get infos about threejs in combination with react...
also: osm is creating that weird tile with red text, not sure what its saying...
Thanks in advance <3 ,
leo
The text was updated successfully, but these errors were encountered: