This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Change nominatim tile server

0

Good afternoon, please help reconfigure local.php nominatim to the local tile server

At the moment I have 2 fully working servers installed:
1. nominatim server 'http://localhost:7070' example URL:
http://localhost:7070/search.php?q=Moscow&polygon_geojson=1&viewbox=

2. OpenMapTiles server 'http://localhost:8080' Example png URL
http://localhost:8080/styles/klokantech-basic/10/598/297.png

I tried editing the local.php file adding it to it:
@define ('CONST_Map_Tile_URL', 'http://localhost:8080/styles/klokantech-basic/{z}/{x}/{y}.png')
But my nominatim site still uses tiles from https://openstreetmap.org.png

asked 12 May '20, 12:31

nimistren's gravatar image

nimistren
11224
accept rate: 0%

edited 12 May '20, 12:38


One Answer:

0

It looks alright. If you look at the HTML of http://localhost:7070/search.php?q=Moscow&polygon_geojson=1 do you see a section var nominatim_map_init that lists the tile URL?

answered 12 May '20, 17:26

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%