Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing for TileSetDefiniton to access GeoJSON vector tiles #158

Open
begu24 opened this issue Feb 14, 2017 · 3 comments
Open

Routing for TileSetDefiniton to access GeoJSON vector tiles #158

begu24 opened this issue Feb 14, 2017 · 3 comments

Comments

@begu24
Copy link

begu24 commented Feb 14, 2017

Hi Jackie,

is there any specific reason that there is no support for accessing GeoJSON vector tiles via TileSetDefinitions? Only MapDefinitions are supported for this but I would really like to use via XYZ-TileProvider.

Gunter

@jumpinjackie
Copy link
Owner

One thing to understand about mapguide-rest is that a majority of the API wraps equivalent mapagent operations and functionality of the MapGuide API in a REST-ful manner.

How does this relate to TileSetDefinitions? Well, whatever TileSetDefinition support offered by mapguide-rest is merely it passing it through to the mapagent infrastructure so in the case of TileSetDefinitions we are merely wrapping the support that is offered by the MapGuide API / mapagent. (ie: Image tile access against TileSetDefinitions instead of MapDefinitions with a choice of normal or XYZ tile access schemes). The provider specified in the TileSetDefinition defines the tile content and access schemes.

That's why we can't access GeoJSON vector tiles with TileSetDefinitions, there is no such tile set provider in MapGuide Server that generates GeoJSON tiles. That is really where we should look at expanding support, not mapguide-rest.

@begu24
Copy link
Author

begu24 commented Feb 15, 2017

I agree with you that GeoJSON tile support should be handled natively via a mapagent operation. But I don't understand the difference to a MapDefinition with an inline and especially an external TileMapProvider. There is no mapagent operation at all, that supports GeoJSON format for a MapDefinition directly.

So, just to clarify things for me:
When inspecting your code, I would think that it must be technically possible to create GeoJSON vector tiles through the MapGuide Rest API, but it would be way much better to handle this via a mapagent operation.

If this is the case, then would it be worth to file an enhancement request for such a mapagent feature?

Gunter

@jumpinjackie
Copy link
Owner

The case for a Map Definition linking to a Tile Set Definition is to:

  • Avoid the situation where saving a Map Definition nukes the associated tile cache (as that is now bound to the Tile Set Definition)
  • Allows the tile set (defined by the Tile Set Definition) to be linked (ie. shared/reused) by many different Map Definitions.

And yes, vector tiles is something that you should get the mapagent/mgserver to generate. However, I wouldn't bother with GeoJSON vector tiles, I'd try for mapbox vector tiles instead which is more standardized and better performing.

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

No branches or pull requests

2 participants