Tile server questions

Hi,

I have a site which is using quite much maps and has quite a lot of users (from 2000 to 10 000 in a day)
Currently using Google Maps but now changing to OSM and Leaflet.

I am still considering should I host a own tile server, or is there a free or relatively cheap tile server available
for my needs? Tiles are needed only for 1 european country.
Can anyone recommend some reliable tile serving service or which are my options?

Also I would like to know is it possible to download the png files once to own server from somewhere?
I did quickly look the Linux installation quide for the tile server but was not able to install it on my AWS EC2 debian vpc.
If I manage to do that, is 2GB 1 core enough to create the tiles? Can I server the tiles through cloudfront?

Is there any AWS AMI images for the tile server?

Can’t wait to get rid of google maps :slight_smile:

Hi and welcome to OSM and the forum

Did you already discoverd https://switch2osm.org/ ? There is a list of tile providers (https://switch2osm.org/providers/). I assume it depends on thier individual terms of usage / licence if you are allowed to act as a proxy/cache for thier tiles.

Almost certainly not. Most tiles don’t exist anywhere yet; they’re created on the fly.

Depends on the country. Look at the subregion sizes at http://download.geofabrik.de/europe.html . I find that the British Isles (1Gb there) nicely fits, with updates, on 1 4Gb memory + 100Gb disk VPS.

The “switch2osm” guides definitely work on vanilla Ubuntu releases. If you can get that on Amazon, great; if not pay a VPS retailer €15 or less a month and host tiles there.

Not heard of any (nor the equivalent for Azure etc.), but doesn’t mean that they don’t exist. If you find any that work please post here!

Hi,

I started to install manually on ubuntu 14.04 on AWS. Not knowing much Linux, what is the username here mentioned in some steps:
https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/

Should I use any username, or “daemon” “ubuntu” or what. Currently getting error “make: *** No rule to make target `install’. Stop.”

Here you can download all tiles by country or whole planet:
https://openmaptiles.com/downloads/dataset/osm/europe/finland/#3.78/65.24/25.31

But I try first manually, cos this is quite expensive.

Is there a way to create PNG tiles on local Windows machine from one of these files:
http://download.geofabrik.de/europe.html

And then just copy them to own web server folder?

I was able to install Ubuntu 18.04 but got stuck here:

https://switch2osm.org/manually-building-a-tile-server-18-04-lts/

This part:
osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script ~/src/openstreetmap-carto/openstreetmap-carto.lua -C 2500 --number-processes 1 -S ~/src/openstreetmap-carto/openstreetmap-carto.style ~/data/finland-latest.osm.pbf

Throws me an error:

"osm2psql version 0.96.0 (64 bit id space)
using lua based tag processing pipeline with script /root/src/openstreetmap-carto/openstreetmap-carto.lua
Using projections SRS 3857 (Spherical Mercantor)
Osm2pgsql failed due to ERROR: Connection to database failed: FATAL: role “root” does not exist.
"

Tried to run that with other user but cos I have low knowledge of Ubuntu dont know what to do now. previous steps seemed to go fine.

You should be running that as whateever user you created in the bit that starts “sudo -u postgres -i” a little bit higher up.

Thank you for your help. I eneded up using Maperitive, it is perfect for my use because currently I do not need up to date maps. I use it to create the 8-bit PNG files and serve them from my apache server which has AWS CloudFront in front of it.

Maybe some day Ill set up that Osm2pgsql.