Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Is full source of the frontend available? #81

Closed
johnsercel opened this issue Apr 21, 2016 · 4 comments
Closed

Is full source of the frontend available? #81

johnsercel opened this issue Apr 21, 2016 · 4 comments

Comments

@johnsercel
Copy link

TileServer seems critically dependent on the javascript hosted at cdn.klokantech.com/tileviewer/v1/index.js, which is heavily minified. Is the source code for that javascript available anywhere? Thanks!

@daliborjanak
Copy link
Collaborator

daliborjanak commented Apr 21, 2016

No, unfortunately, the source code of the "tileviewer" is in this moment private.

But you can use your own viewer. I wrote an example of usage to wiki https://github.com/klokantech/tileserver-php/wiki/Template. I think it helps you. You can use template posted in related ticket #31 in Leaflet.
We will give more examples of viewers later.

@klokan
Copy link
Member

klokan commented Apr 21, 2016

All server functions of the TileServer-PHP are 100% open-source - serving the tiles, TileJSON, using from MapBox Studio, Leaflet, etc.

Your can remove our "tileviewer" frontend and the server runs just fine - if you use your own viewer or load map tiles from a different location or your own application (possibly running even on a different server).

You can also switch the TileServer-PHP project to use a custom template - as @daliborjanak suggested.

In future, we may release our "tileviewer" component as open-source, but right now it would require extra effort related to cleaning and documenting the code - and it does not make much sense. BTW the tileviewer component is designed to run on top of multiple backends (tiles generated by MapTiler.com accessed via file:// protocol, tiles in tileserver-php, tileserver-mapnik, tileserver-gl, tiles hosted on Amazon S3, Google Cloud Storage, TileServer.com, tiles on https with Google Drive or Dropbox free hosting, or any TileJSON endpoint, etc.).

@klokan klokan closed this as completed Apr 21, 2016
@klokan klokan changed the title Is full source available? Is full source of the frontend available? Apr 21, 2016
@johnsercel
Copy link
Author

Okay, thank you. I've been working on a GAE/GCS hybrid deployment, which needs some optimizations such as direct tile requests, no proxy. But I'll work on a different front end.

@klokan
Copy link
Member

klokan commented May 4, 2016

The documentation updated:
https://github.com/klokantech/tileserver-php/wiki/Template

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

No branches or pull requests

3 participants