Hi, I have a local tile server which is setup using mapnik. Following code is not working when I add my local map server URL. Please tell me how can I add my local map in below sample code. Is there anything I need to do from serverside? Sample Code: layers: [ new ol.layer.Tile({ source: new ol.source.OSM({ url: 'http://testmap.com/{z}/{x}/{y}.png' }) }), asked 16 Feb '17, 11:54 Reshma Maner |
I assume that you have properly set up either renderd or tirex. If not, do that first. Then you need to have your ModTile directives in the Apache config set accordingly. If you want tiles to be available under / like in your above example, and if your map style is called "osm", then you'd need
Read more here: https://github.com/openstreetmap/mod_tile/blob/master/mod_tile.conf answered 16 Feb '17, 12:08 Frederik Ramm ♦ |