Changes between Version 66 and Version 67 of MapCacheOpenLayers
- Timestamp:
- 2019-03-29T14:33:23-03:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapCacheOpenLayers
v66 v67 1 1 [[PageOutline]] 2 2 3 = Configuring MS4W and !MapCache for use in !OpenLayers 3=3 = Configuring MS4W and !MapCache for use in !OpenLayers= 4 4 5 This was spawned by an MS4W user asking how to setup OpenLayers 3for an MS4W !MapCache's WMS service ([http://osgeo-org.1560.x6.nabble.com/ms4w-3-1-4-mapcache-td5267121.html thread]), with the following incorrect Javascript code, which did not write tiles to MS4W's cache directory:5 This was spawned by an MS4W user asking how to setup OpenLayers for an MS4W !MapCache's WMS service ([http://osgeo-org.1560.x6.nabble.com/ms4w-3-1-4-mapcache-td5267121.html thread]), with the following incorrect Javascript code, which did not write tiles to MS4W's cache directory: 6 6 {{{ 7 7 #!js … … 20 20 }) , 21 21 }}} 22 [[NoteBox(tip, See Step4 below for correct OpenLayers 3code but be sure to execute all Steps)]]22 [[NoteBox(tip, See Step4 below for correct OpenLayers code but be sure to execute all Steps)]] 23 23 24 24 == Background Links == … … 40 40 == Step 2: Install MS4W's OpenLayers3 Package == 41 41 42 * if you haven't installed MS4W's !OpenLayers 3package (we'll use its sample WMS mapfile), please install it:42 * if you haven't installed MS4W's !OpenLayers package (we'll use its sample WMS mapfile), please install it: 43 43 * save the !OpenLayers zip locally from: http://ms4w.com/download.html#applications-packaged-for-ms4w 44 44 * extract its contents to the root of your MS4W installation … … 92 92 * zoom in a few times, and check your cache folder (''/ms4w/tmp/ms_tmp/cache/test''), you will notice that tile images are saved there. 93 93 94 == Step 4: Configure !OpenLayers 3to use this WMS Service ==94 == Step 4: Configure !OpenLayers to use this WMS Service == 95 95 96 96 We will use one of the existing !OpenLayers examples' html and javascript, but you can adapt this for your own page.