gis.integration
Classes
Provides mapbox integration |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- class gis.integration.MapboxApp[source]
Bases:
more.webassets.WebassetsApp
Provides mapbox integration
onegov.core.framework.Framework
based applications.Doesn’t do much except serve the mapbox public token, so we can store it in configuration and not with the source. Not that this token is inherently unsafe and must be the public token.
Do not use private tokens!
If we wanted to avoid this we would have to use a mapbox proxy server, which seems a bit too much. If we detect abuse of the public token we just switch to a new one. If it must be we can even automatically rotate the token regularly.
- gis.integration.inject_mapbox_api_token_tween_factory(app: MapboxApp, handler: Callable[[CoreRequest], Response]) Callable[[CoreRequest], Response] [source]