Changes between Version 66 and Version 67 of MapCacheOpenLayers


Ignore:
Timestamp:
2019-03-29T14:33:23-03:00 (6 years ago)
Author:
Jeff McKenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapCacheOpenLayers

    v66 v67  
    11[[PageOutline]]
    22
    3 = Configuring MS4W and !MapCache for use in !OpenLayers 3 =
     3= Configuring MS4W and !MapCache for use in !OpenLayers=
    44
    5 This was spawned by an MS4W user asking how to setup OpenLayers3 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:
     5This 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:
    66{{{
    77#!js
     
    2020                                        })  ,
    2121}}}
    22 [[NoteBox(tip, See Step4 below for correct OpenLayers3 code but be sure to execute all Steps)]]
     22[[NoteBox(tip, See Step4 below for correct OpenLayers code but be sure to execute all Steps)]]
    2323
    2424== Background Links ==
     
    4040== Step 2: Install MS4W's OpenLayers3 Package ==
    4141
    42 * if you haven't installed MS4W's !OpenLayers 3 package (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:
    4343  * save the !OpenLayers zip locally from: http://ms4w.com/download.html#applications-packaged-for-ms4w
    4444  * extract its contents to the root of your MS4W installation
     
    9292* 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.
    9393
    94 == Step 4: Configure !OpenLayers 3 to use this WMS Service ==
     94== Step 4: Configure !OpenLayers to use this WMS Service ==
    9595
    9696We will use one of the existing !OpenLayers examples' html and javascript, but you can adapt this for your own page.