"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
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
geoinf16:ol3tuto [2018/05/16 10:05] 127.0.0.1 external edit |
geoinf16:ol3tuto [2019/02/13 11:29] (current) oertz [Ex3A : Styling avec WMS] |
||
---|---|---|---|
Line 319: | Line 319: | ||
<head> | <head> | ||
<title>ol3 - Ex3A - use of a custom SLD style</title> | <title>ol3 - Ex3A - use of a custom SLD style</title> | ||
- | <script type="text/javascript" src="js/config.js"></script> | + | |
+ | <link rel="stylesheet" href="https://openlayers.org/en/v3.20.1/css/ol.css" type="text/css"> | ||
+ | |||
+ | <script src="https://openlayers.org/en/v3.20.1/build/ol-debug.js" type="text/javascript"></script> | ||
+ | <script src="https://code.jquery.com/jquery-2.1.4.min.js" type="text/javascript"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | var map; | + | var map; |
- | $(document).ready(function(){ | + | var mcWMS = "https://eu1.mapcentia.com/wms/oertz/public"; |
+ | var mcWFS = "https://eu1.mapcentia.com/wfs/oertz/public/4326"; | ||
+ | |||
+ | $(document).ready(function(){ | ||
map = new ol.Map({ | map = new ol.Map({ | ||
view: new ol.View({ | view: new ol.View({ | ||
Line 344: | Line 352: | ||
}); | }); | ||
</script> | </script> | ||
- | <style type="text/css"> | + | <style type="text/css"> |
#map { | #map { | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
} | } | ||
- | </style> | + | </style> |
</head> | </head> | ||
<body> | <body> |