[OpenLayers-Users] How to read OpenLayers Layer Definitions from file?
Stephen Woodbridge
woodbri at swoodbridge.com
Wed Mar 20 05:38:42 PDT 2013
On 3/20/2013 3:46 AM, Carlo Di Michele wrote:
> First of all congratulation Phil :-)))
> my name is Carlo (a "super nerd" of Open Layers :-(((((( ) I have to
> tell you that your project is amazing and it is exactly what I wish to
> do. Currently I'm working inside a petroleum company as consultant and
> (before my contracts end :-(( ) I had in my mind to introduce to my
> bosses (for my contract renewal ;-) ) a web solution exactly like this:
> BRAVO :-)))
>
> I have a question: we have some raster maps here to overlay on standard
> maps (google, satellite etc) and I would like to add also an opacity
> control to see the overlap between maps. I suppose that I should have it
> in a server in some way but I should tile and publish. Do you have any
> suggestions on how to do it? Is it possible?
http://openlayers.org/dev/examples/layer-opacity.html
The demo appears to be broken at the moment, but look at the page source
for how it works.
-Steve
> I wait with anxious your precious suggestions to the Peter's questions too.
>
> Congratulation!!! Great Job :-)))))
> Carlo
>
>
> 2013/3/19 Phil Scadden <p.scadden at gns.cri.nz <mailto:p.scadden at gns.cri.nz>>
>
> I do this. I have my layer definitions and behaviours in an external
> file, stored as json format. The application fetches the json, and
> then processes it to create the map with all the layers and desired
> behaviour. I have a web application for defining the layers and
> behaviours desired and storing to a json file. (Warning - a
> non-trivial amount of work). You can see a resulting map at
> http://data.gns.cri.nz/pbe/ (free registration required). The menu
> contents are also completely defined by a json file. If you look at
> the "interactive maps", you will see from URL, that it just loads
> different json files for each map. This gives me one set of code to
> create multiple web mapping applications. The other advantage is
> that each content and behaviour can have user groups associated with
> it. This way different classes of users (eg internal versus external
> versus paying clients) get to see different things from the same
> config. The json is filtered by user before passing it to OL.
>
>
> Notice: This email and any attachments are confidential.
> If received in error please destroy and immediately notify us.
> Do not copy or disclose the contents.
>
>
> _________________________________________________
> Users mailing list
> Users at lists.osgeo.org <mailto:Users at lists.osgeo.org>
> http://lists.osgeo.org/__mailman/listinfo/openlayers-__users
> <http://lists.osgeo.org/mailman/listinfo/openlayers-users>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
More information about the Users
mailing list