I have installed PHP server and it works perfect when I open the web in localhost. If I render the map from a remote computer, the map is not rendered because the file style.json has many parameters with the url to localhost:
{
"version": 8,
"name": "Bright",
"metadata": {
"mapbox:autocomposite": false,
"mapbox:groups": {
"1444849242106.713": {
"collapsed": false,
"name": "Places"
},
"1444849334699.1902": {
"collapsed": true,
"name": "Bridges"
},
"1444849345966.4436": {
"collapsed": false,
"name": "Roads"
},
"1444849354174.1904": {
"collapsed": true,
"name": "Tunnels"
},
"1444849364238.8171": {
"collapsed": false,
"name": "Buildings"
},
"1444849382550.77": {
"collapsed": false,
"name": "Water"
},
"1444849388993.3071": {
"collapsed": false,
"name": "Land"
}
},
"mapbox:type": "template",
"openmaptiles:mapbox:owner": "openmaptiles",
"openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t",
"openmaptiles:version": "3.x"
},
"center": [
0,
0
],
"zoom": 1,
"bearing": 0,
"pitch": 0,
"sources": {
"openmaptiles": {
"type": "vector",
"url": "http://localhost:8002/tileserver.php?/spain.json"
}
},
"sprite": "http://localhost:8002/sprite",
"glyphs": "http://localhost:8002/fonts/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
...
How it could be improved to have those URL relative.
Thank you. Best regards.