webglearth / webglearth2

[UNMAINTAINED] WebGL Earth 2 - the source code of the project
Apache License 2.0
888 stars 212 forks source link

Support for imageOverlay layers? #56

Open isaachinman opened 9 years ago

isaachinman commented 9 years ago

I am building a web app that will dynamically add tiles (pngs) to a WebGL Earth as they are async fetched from an API. This, of course, means lots and lots of small tiles being applied. I'd like to be able to use imageOverlay (a leaflet method), unless you think there is a better approach.

var imageUrl = 'http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg',
imageBounds = [[40.712216, -74.22655], [40.773941, -74.12544]];

L.imageOverlay(imageUrl, imageBounds).addTo(map);

Compiling the tiles ahead of time (eg with MapTiler isn't an option, as I am using NASA satellite images which are updated roughly every two weeks.

klokan commented 9 years ago

We recommend tiled approach. Patch adding this would be accepted after review.

isaachinman commented 9 years ago

@klokan Do you have an approximate estimate of timeframe?

klokan commented 9 years ago

There is no planned timeframe for this - as we have no client who requested this - and for any larger map or serious work you need tiles anyway (http://www.maptiler.com/ or mapserver or similar). Technically it could be relatively easy patch - done in about 3 hours of coding time probably. If a third party develop this we will accept a pull request - or if there is a client we can develop that on our side.