forked from geosolutions-it/geonode-mapstore-client
-
Notifications
You must be signed in to change notification settings - Fork 126
Labels
Description
Description
A new plugin to allow user to import documents as a vector layer.
How it works:
- A Button in Navbar allows to open Documents Catalog.
- Allows filtering documents by title , abstract, document extension type (png, jpg ..) , categories , keyword.
- After search result is completed , user can add search results as a layer in the map.
- Each marker represent a document and when click on the marker , in identify panel , the document should be visible as embed content.
Mockup:
Other useful information :
Here the approach is to follow how DatasetsCatalog plugin currently works. Each document will have location property to be used as a geometry. We need to make a appropriate vector layer and save in layers in mapconfig.
The vector layer sample will be something similar like shown below
{
"type": "vector",
"id": "test_vector",
"title": "Documents",
"features": [{
"type": "Feature",
"properties": {
"title": "My Image",
"embedUrl": "https://development.demo.geonode.org/documents/3357/embed"
},
"geometry": {
"type": "Point",
"coordinates": [0, 0]
}
}],
"featureInfo": {
"format": "TEMPLATE",
"template": "<p><iframe src=\"${properties['embedUrl']}\" /></p>"
}
}