Version 4 (modified by 9 years ago) ( diff ) | ,
---|
Configuring MS4W and MapCache for use in OpenLayers 3
This was spawned by an MS4W user asking how to setup OpenLayers3 for an MS4W MapCache's WMS service (thread):
i active mapcache in ms4w 3.1.4 with it's introduction and run successfully image in tmp folder , in example is openlayers2 but i'd like use mapcache ms4w via openlayers 3 and my code is below new ol.layer.Tile({ title: 'Chabahar', source: new ol.source.TileWMS({ url: 'http://localhost:100/cgi-bin/mapserv.exe?map=D:/WEB_GIS/code_test/wms/HTML5Application/public_html/chabahar.map&', params: { 'LAYERS': 'chabahar', 'FORMAT': 'image/png', 'TILED': true }, serverType: 'mapserver' }) }) , but no image save in tmp directory
Step 1: Initialize MapCache Module
- follow all of the steps in MS4W's README to initialize the MapCache module
Attachments (5)
-
OL-WMS.PNG
(211.1 KB
) - added by 9 years ago.
Default OpenLayers demo using sample WMS service from MS4W
-
MAPCACHE-WMTS-3857.PNG
(66.9 KB
) - added by 9 years ago.
Sample WMTS service through MapCache, using 3857 projection
-
OL-MAPCACHE1.PNG
(252.4 KB
) - added by 9 years ago.
Working page for the MapCache test (before adding our WMTS service)
-
OL-MAPCACHE2.PNG
(82.9 KB
) - added by 9 years ago.
OpenLayers using the MapCache WMTS service through MS4W
-
OL-MAPCACHE3.PNG
(50.1 KB
) - added by 9 years ago.
MapCache generated tiles through OpenLayers 3
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.