Changes between Version 43 and Version 44 of MapCacheOpenLayers


Ignore:
Timestamp:
2016-05-19T17:11:55-03:00 (9 years ago)
Author:
Jeff McKenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapCacheOpenLayers

    v43 v44  
    9595* load that page in your Web browser using the appropriate URL (such as: http://127.0.0.1/openlayers/examples/mapcache-getfeatureinfo-tile.html) You should see a countries map with labels, such as:
    9696[[Image(OL-MAPCACHE1.PNG, 600px, nolink)]]
     97
     98* delete the existing cache folder: ''/ms4w/tmp/ms_tmp/cache/test''
     99
     100* edit the file ''/ms4w/apps/openlayers/examples/mapcache-getfeatureinfo-tile.html.js'' and change the ''wmsSource'' variable (at the top of the file) to:
     101
     102{{{
     103#!js
     104
     105var wmsSource = new ol.source.TileWMS({
     106  url: 'http://127.0.0.1/mapcache/',
     107  params: {
     108                'LAYERS': 'test',
     109                'VERSION': '1.1.1',
     110                'FORMAT': 'image/jpeg'
     111              },
     112  serverType: 'mapserver',
     113  crossOrigin: 'anonymous'
     114});
     115}}}