Open poVoq opened 8 years ago
From the OSM docs
System requirements
Serving your own maps is a fairly intensive task.
Depending on the size of the area you’re interested in serving and the traffic you expect the system requirements will vary.
In general, requirements will range from 10-20GB of storage, 4GB of memory, and a modern dual-core processor for a city-sized region to 300GB+ of fast storage, 24GB of memory, and a quad-core processor for the entire planet.
That really depends... and for using it to simply have a small map overlay like in the example linked in the page above you basically need no big system at all. It's a niche use of course, but the above server can also be used as a map repository for qGIS or the like, which would definitely be useful for some people.
I think an option to define an own tile server would be much better. This option is not usable for most users of owncloud and will probably let the app/oc freeze if activated by people who don't know the rist or don't know the recources of their system. Let the app remain easy to use for the mainstream user. Advanced users, which have enough recources for a tile server, should have enough knowledge to setup an own tileserver.
I agree with @DJaeger on this.
I’d say most convenient would be if people could set their own map provider and add an API key. Like Mapbox for example. But this is definitely not an area of focus right now, so setting to 0.2. :)
(cc @freenerd of Mapbox cause we talked about this.)
Hi! I want create ownCloud plugin to display on map (Leaflet JS library) tile cache served in user store of ownCloud. To display tile cache on map I use script:
var downloadUrl = OC.generateUrl('/apps/files/ajax/download.php') + '?dir=',
dirUrl = '/geography/',
cacheUrl = '{z}/{x}&files={y}.png',
tileCacheUrl = downloadUrl + dirUrl + cacheUrl;
L.tileLayer( tileCacheUrl, {
zIndex: 10
}).addTo(map);
But using of tile cache in ownCloud have one big problem - many files and folders. This problem is solved by the use of the mbtiles (http://wiki.openstreetmap.org/wiki/MBTiles) file format, but I can not integrate php_mbtiles_server in to ownCloud plugin to display tiles from mbtiles file. I use php_mbtiles_server https://github.com/bmcbride/PHP-MBTiles-Server. Code example of plugin https://github.com/spatialhast/mbtilesviewer. Example mbtiles file and web application to display https://github.com/spatialhast/php_mbtiles_server.
If you have any ideas how to display mbtiles file using php mbtiles server - please commits.
Ok... maybe this is way beyond the target of this app, but having your own custom tile server could be a really neat feature as an overlay.
A quick search brought this up: https://github.com/klokantech/tileserver-php/ which might work for integration.
This would also allow for offline/intranet map-viewing for people with a weak net connection or other reasons why they can't easily use external map tile servers.