[OpenLayers-Dev] Day and night shadow map

Peter Körner osm-lists at mazdermind.de
Mon Jun 20 06:09:53 EDT 2011


Am 18.06.2011 11:09, schrieb Fixdit:
> Hello,
> I'm in need of help finding/building a day and night layer overlaid on top
> of an Openlayers world map. Much like this Google Map example:
> http://www.daylightmap.com/index.php
>
> How would this be achieved using Openlayers?

I don't think it's a question of openlayers but one of your tile source.
You would need a Tile-Renderer or maybe WMS that renders you such images:
http://www.daylightmap.com/tiles/cache/tile_n_3_0_2_1308564480.png

You can then add them as Tile-Layer with opacity: 0.8

> I have some algorithm examples that could kick start things if there is
> nothing already out there, but unsure of where to start implementing
> something like this with Openlayers:
> http://www.astro.uu.nl/~strous/AA/en/antwoorden/zonpositie.html#v526

It may be possible to add this as vector layer, but you won't get these 
lights on cities then.

Peter


More information about the Dev mailing list