OSM website clone: error while saving my editions

Tom Hughes tom at compton.nu
Wed Jul 7 12:38:21 UTC 2021


On 07/07/2021 12:55, Sim Tov wrote:

> Everything went OK and I could access my OSM instance, but - I saw the 
> whole world map, instead of my small part that I have extracted and 
> populated. Since my VM is not capable to host the whole map - I assume 
> it's just the main OSM map and my instance functions as a proxy to it. 

No not at all, but the rails code is just the web interface
and it has nothing to do with any map rendering.

The default tile layers are those from the main OSM tile service
and various third party services, all of which render tiles based
on the main database derived from www.openstreetmap.org.

> So all changes I made - will go to the main OSM map and not my local map 
> which is not what I want.

Well you don't have a "local map" currently, you have a local database
of geodata.

> 1. Why is it so and what should I do to actually get only my area of 
> interest displayed in my instance?

For that you would need to setup your own render stack and tile
server and change the code in this repository to point at your
tile server instead of tile.openstreetmap.org.

> Then I went on and added a new user, activated it, assigned it 
> "Administrator" role and added OAuth Consumer Keys and restarted the 
> "web container", as per this instructions:
> 
> https://github.com/openstreetmap/openstreetmap-website/blob/master/CONFIGURE.md 
> <https://github.com/openstreetmap/openstreetmap-website/blob/master/CONFIGURE.md>
> 
> After all this I was able to login with the new user and start editing. 
> I added a test point and tried to save it. I was asked to "Allow the 
> client application to: modify the map" - I clicked "Grant Access" (see 
> attachment).

I'm not familiar with the docker setup but that probably means you
didn't configure the keys properly in the site settings.

> However I got an error response (see attachments):
> 
> Routing Error
> No route matches [GET] "/land.html"
> 
> Rails.root: /app
> 
> 
> So my second question is:
> 
> 2. Why do I get error and how can I fix it?

Don't worry about it - once you fix the previous issue this
one should go away I think.

> 
> 3. Is there a way in the web site settings to show my map only to logged 
> in users and not to everybody?

No.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://compton.nu/



More information about the rails-dev mailing list