Skip to main content
naming; removed thanks
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

Openlayers OpenLayers getting OSM from local server

I have successfully installed OSM tile server on a local server. I verified operation using direct calls

http://server_ip/hot/z/x/y.png

I setup a page with openlayersOpenLayers 5.2.0. The layer init :

osm = new ol.layer.Tile({
    source: new ol.source.OSM({
        opaque: false,
        url: 'http://server_ip/hot/{z}/{x}/{y}.png'
        //url: 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png'
    })
});

When I use the a.tile.openstreetmap.org it works ok, but shows blank tiles on my local server call.

I verified the call to my server using wireshark, http request and reply. The return of httpHTTP are the required tiles (verified by saving them to disk). But openlayersOpenLayers is showing blank.

Does openlayersOpenLayers expect other parameters (in layer init code) when not specifically using osm server? (or timeout problem since my server is slower?)

Thanks.

Openlayers getting OSM from local server

I have successfully installed OSM tile server on a local server. I verified operation using direct calls

http://server_ip/hot/z/x/y.png

I setup a page with openlayers 5.2.0. The layer init :

osm = new ol.layer.Tile({
    source: new ol.source.OSM({
        opaque: false,
        url: 'http://server_ip/hot/{z}/{x}/{y}.png'
        //url: 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png'
    })
});

When I use the a.tile.openstreetmap.org it works ok, but shows blank tiles on my local server call.

I verified the call to my server using wireshark, http request and reply. The return of http are the required tiles (verified by saving them to disk). But openlayers is showing blank.

Does openlayers expect other parameters (in layer init code) when not specifically using osm server? (or timeout problem since my server is slower?)

Thanks.

OpenLayers getting OSM from local server

I have successfully installed OSM tile server on a local server. I verified operation using direct calls

http://server_ip/hot/z/x/y.png

I setup a page with OpenLayers 5.2.0. The layer init :

osm = new ol.layer.Tile({
    source: new ol.source.OSM({
        opaque: false,
        url: 'http://server_ip/hot/{z}/{x}/{y}.png'
        //url: 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png'
    })
});

When I use the a.tile.openstreetmap.org it works ok, but shows blank tiles on my local server call.

I verified the call to my server using wireshark, http request and reply. The return of HTTP are the required tiles (verified by saving them to disk). But OpenLayers is showing blank.

Does OpenLayers expect other parameters (in layer init code) when not specifically using osm server? (or timeout problem since my server is slower?)

added 48 characters in body
Source Link

I have successfully installed OSM tile server on a local server. I verified operation using direct calls

http://server_ip/hot/z/x/y.png

I setup a page with openlayers 5.2.0. The layer init :

osm = new ol.layer.Tile({
    source: new ol.source.OSM({
        opaque: false,
        url: 'http://server_ip/hot/{z}/{x}/{y}.png'
        //url: 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png'
    })
});

When I use the a.tile.openstreetmap.org it works ok, but shows blank tiles on my local server call.

I verified the call to my server using wireshark, http request and reply. The return of http are the required tiles (verified by saving them to disk). But openlayers is showing blank.

Does openlayers expect other parameters (in layer init code) when not specifically using osm server? (or timeout problem since my server is slower?)

Thanks.

I have successfully installed OSM tile server on a local server. I verified operation using direct calls

http://server_ip/hot/z/x/y.png

I setup a page with openlayers 5.2.0. The layer init :

osm = new ol.layer.Tile({
    source: new ol.source.OSM({
        opaque: false,
        url: 'http://server_ip/hot/{z}/{x}/{y}.png'
        //url: 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png'
    })
});

When I use the a.tile.openstreetmap.org it works ok, but shows blank tiles on my local server call.

I verified the call to my server using wireshark, http request and reply. The return of http are the required tiles (verified by saving them to disk). But openlayers is showing blank.

Does openlayers expect other parameters (in layer init code) when not specifically using osm server?

Thanks.

I have successfully installed OSM tile server on a local server. I verified operation using direct calls

http://server_ip/hot/z/x/y.png

I setup a page with openlayers 5.2.0. The layer init :

osm = new ol.layer.Tile({
    source: new ol.source.OSM({
        opaque: false,
        url: 'http://server_ip/hot/{z}/{x}/{y}.png'
        //url: 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png'
    })
});

When I use the a.tile.openstreetmap.org it works ok, but shows blank tiles on my local server call.

I verified the call to my server using wireshark, http request and reply. The return of http are the required tiles (verified by saving them to disk). But openlayers is showing blank.

Does openlayers expect other parameters (in layer init code) when not specifically using osm server? (or timeout problem since my server is slower?)

Thanks.

Source Link

Openlayers getting OSM from local server

I have successfully installed OSM tile server on a local server. I verified operation using direct calls

http://server_ip/hot/z/x/y.png

I setup a page with openlayers 5.2.0. The layer init :

osm = new ol.layer.Tile({
    source: new ol.source.OSM({
        opaque: false,
        url: 'http://server_ip/hot/{z}/{x}/{y}.png'
        //url: 'http://a.tile.openstreetmap.org/{z}/{x}/{y}.png'
    })
});

When I use the a.tile.openstreetmap.org it works ok, but shows blank tiles on my local server call.

I verified the call to my server using wireshark, http request and reply. The return of http are the required tiles (verified by saving them to disk). But openlayers is showing blank.

Does openlayers expect other parameters (in layer init code) when not specifically using osm server?

Thanks.