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

If no explicit attribution in leafletLayer, use attribution in YAML sources #763

Merged
merged 2 commits into from
Jul 31, 2020

Conversation

bdon
Copy link
Contributor

@bdon bdon commented Jul 13, 2020

This is more similar to the behavior of Leaflet raster tiles where each individual tile layer can have an attribution. Because a TangramLayer can use multiple tile sources, this lets the attribution for each source be specified in YAML, and then these are added together in the case that no explicit 'attribution' prop is passed to LeafletLayer.

@bcamper
Copy link
Member

bcamper commented Jul 26, 2020

I like this, it reminds me that I have wanted to have more formal scene-level metadata properties defined (though source-level makes sense here).

@matteblair @tallytalwar I don't know if there's anything we would need explicitly here on the ES side, minimally to expose these values in the API? We don't otherwise have a built-in attribution display do we?

@bcamper bcamper added this to the v0.21.0 milestone Jul 26, 2020
@matteblair
Copy link
Member

Tangram ES still doesn't have any integrated form of attribution - but we should! Per-source and per-scene attribution strings make sense to me. We can certainly ingest those strings from the scene configuration, we just don't have anywhere to show them right now. A simple approach could be to create a native text window for the attribution and let the user customize it from their app.

@tallytalwar
Copy link
Member

tallytalwar commented Jul 26, 2020 via email

@bcamper
Copy link
Member

bcamper commented Jul 31, 2020

I made some very minor changes in 6ee8598 to match Tangram code style (some aspects of which I wouldn't pick for a new project today, but... it's the style we have aimed for consistency in for the project's lifespan).

@bcamper bcamper merged commit d5219c6 into tangrams:master Jul 31, 2020
@bcamper
Copy link
Member

bcamper commented Jul 31, 2020

Switched Nextzen demo attribution to use this in 365bb6e 🙌

@nvkelso
Copy link
Member

nvkelso commented Jul 31, 2020

Could you also add in Data from OpenStreetMap and Who's On First, as well?

@bcamper
Copy link
Member

bcamper commented Aug 2, 2020

Could you also add in Data from OpenStreetMap and Who's On First, as well?

Done! We should add directly to the Nextzen basemaps as well.

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

Successfully merging this pull request may close these issues.

5 participants