Replies: 1 comment
-
in the case of a WGS84 projection in and use this code var source_wgs84 = new itowns.TMSSource({
crs: 'EPSG:4326',
url: 'wgs84_${x}.png',
zoom: { min:0, max: 0}
});
var layer_wgs84 = new itowns.ColorLayer('wgs84', {
source: source_wgs84
});
view.addLayer(layer_wgs84); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm hoping to use iTowns again for another project of mine, but I'm stuck working out the best method for draping a single texture over the entire globe (eg. a single WGS84 image that covers the extent -180, 180, -90, 90).
For example (though this isn't actually the full extend as it's a cropped screenshot):
It seems there isn't a layer for this in the docs, and I've had limited success forcefully updating the material set on the globe geometry, which seems like more of a hack anyway so I'd like to avoid that.
Is there a layer that I'm missing that could do this, or will I need to dig into the guts of the framework to add my own sphere geometry over the top of the terrain?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions