NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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?

permanent link

answered 12 May '20, 17:26

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×204
×4

question asked: 12 May '20, 12:31

question was seen: 1,939 times

last updated: 12 May '20, 17:26

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum