Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Run your own simple tile server in own-cloud? #69

Open
poVoq opened this issue Sep 1, 2015 · 6 comments
Open

Run your own simple tile server in own-cloud? #69

poVoq opened this issue Sep 1, 2015 · 6 comments

Comments

@poVoq
Copy link

poVoq commented Sep 1, 2015

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.

@brantje
Copy link
Contributor

brantje commented Sep 2, 2015

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.

@poVoq
Copy link
Author

poVoq commented Sep 2, 2015

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.

@DJaeger
Copy link
Contributor

DJaeger commented Oct 17, 2015

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.

@Henni
Copy link
Contributor

Henni commented Oct 17, 2015

I agree with @DJaeger on this.

@jancborchardt
Copy link
Contributor

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.)

@spatialhast
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants