geonode.maps.models
Attributes
Classes
A Map aggregates several layers together and annotates them with a viewport |
|
The MapLayer model represents a layer included in a map. This doesn't just |
Module Contents
- class geonode.maps.models.Map(*args, **kwargs)[source]
Bases:
geonode.base.models.ResourceBaseA Map aggregates several layers together and annotates them with a viewport configuration.
- get_linked_resources(as_target: bool = False)[source]
Get all the linked resources to this ResourceBase instance. This is implemented as a method so that derived classes can override it (for instance, Maps may add related datasets)
- json(dataset_filter)[source]
Get a JSON representation of this map suitable for sending to geoserver for creating a download of all layers
- get_bbox_from_datasets(layers)[source]
Calculate the bbox from a given list of Dataset objects
bbox format: [xmin, xmax, ymin, ymax]