GIS and Media fusion

"The explosive growth of the GeoWeb and geographic information has made GIS powerful media for the general public to communicate, but perhaps more importantly, GIS have also become media for constructive dialogs and interactions about social issues." - Sui & Goodchild

User Tools

Site Tools


geoinf14:oltuto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
geoinf14:oltuto [2014/12/07 18:09]
oertz [1. Les bases]
geoinf14:oltuto [2018/05/16 10:05] (current)
Line 462: Line 462:
             $(document).ready(function(){             $(document).ready(function(){
                 map = new OpenLayers.Map('​map'​);​                 map = new OpenLayers.Map('​map'​);​
-                map.addControl(new OpenLayers.Control.LayerSwitcher());​+                map.addControl(new OpenLayers.Control.LayerSwitcher({'​ascending':​false}));
                 ​                 ​
                 world = new OpenLayers.Layer.WMS(                 world = new OpenLayers.Layer.WMS(
Line 472: Line 472:
                             }, { singleTile: true }                             }, { singleTile: true }
                         );                         );
-                ​map.addLayer(world);​+                ​
           ​           ​
                 cities = new OpenLayers.Layer.WMS(                 cities = new OpenLayers.Layer.WMS(
Line 480: Line 480:
                                 layers: '​public.cities',​                                 layers: '​public.cities',​
                                 format: '​image/​png'​                                 format: '​image/​png'​
-                            }, { singleTile: true }+                            }, { singleTile: true,​isBaseLayer:​false ​}
                         );                         );
 +                map.addLayer(world);​
                 map.addLayer(cities);​                 map.addLayer(cities);​
 +
                 map.setCenter(new OpenLayers.LonLat(7,​ 47), 5);                 map.setCenter(new OpenLayers.LonLat(7,​ 47), 5);
             });             });
Line 497: Line 499:
         <div id="​map"></​div>​         <div id="​map"></​div>​
     </​body>​     </​body>​
-</​html>​+</html>>
 </​code>​ </​code>​
  
geoinf14/oltuto.1417972187.txt.gz · Last modified: 2018/05/16 10:05 (external edit)