[OpenLayers-Dev] Change tile.Openstreet.org config in OpenGTS to Local Tile Server Not Work

Behrouz Khezry bkhezry at gmail.com
Sat Apr 12 03:21:37 PDT 2014


Hi,
I use this tutorial to Deploy Local tile server
switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/

Now http://localhost/osm_tiles/0/0/0.png work fine and show earth png file.

In OpenGTS/war/track/js/maps/OpenLayers.js

I Change config file
from
/* Standard OSM Mapnik */
    var NEW_OSM_LAYER = true;
    if (NEW_OSM_LAYER) {
        this.openLayersMap.addLayer(new OpenLayers.Layer.OSM("Mapnik OSM", [
            "http://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
            "http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
            "http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
        ]));

to

/* Standard OSM Mapnik */
    var NEW_OSM_LAYER = true;
    if (NEW_OSM_LAYER) {
        this.openLayersMap.addLayer(new OpenLayers.Layer.OSM("Mapnik OSM", [

"http://
localhost/
osm_tiles/${z}/${x}/${y}.png"
        ]));

But Maps Not Show in OpenGTS.

Can Any One Help Me ?
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20140412/c2c80677/attachment.html>


More information about the Dev mailing list