jhu-digital-manuscripts / AnIOp

to track the activities of the Mellon funded Annotation Interoperability project
0 stars 0 forks source link

Create new CustomPanel plugin for georeference annos #107

Closed jabrah closed 4 years ago

jabrah commented 4 years ago

Based on user feedback, we should consolidate georeference annotations into a single map for each page. We currently show one map with a single pin for each such annotation, but users had difficulty grasping the geographic distribution of the locations across multiple maps. We should create a new custom sidebar with a map to collect all locations for each page.

For reference, current custom sidebar already implements a new CustomPanel. You can see a simplified example of CustomPanel plugins here https://github.com/jabrah/mirador-side-panel-plugin-test.

Our wiki has some notes on M3 plugin development, which may or may not be helpful https://github.com/jhu-digital-manuscripts/rosademo-frontend/wiki

jabrah commented 4 years ago

Initial thoughts on props for this component:

props: {
  annotations: [],
  selectedAnnotation: 'string'
  annotationSelected: function(string)
}
jabrah commented 4 years ago

Slight tweak to the props provided:

annotations: [],
selectedAnnotation: '',
selectGeorefAnnotation: function (string)

For now, the action provided will only allow a user to select one annotation at a time. You should be able to "deselect" an annotation by calling the selectGeorefAnnotation and providing no argument.

Questions: