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

As an admin, I want to see the feature listing on a map and be able to select a feature to edit from the filtered/searched features on a map. #18

Closed
Rikuoja opened this issue Nov 2, 2017 · 5 comments

Comments

@Rikuoja
Copy link
Contributor

Rikuoja commented Nov 2, 2017

This is tricky in django-admin, as there is no readymade component for this.

Basically, implementing this would require javascript coding for drawing of the OSM map or, alternatively, a Leaflet map, overriding the standard django-admin list method. An idea for displaying points on a map in admin listing is shown here: https://stackoverflow.com/questions/32434998/geodjango-view-admin-list-view-on-a-map

Also, there seems to be a very WIP PR to django-leaflet that attempts the same: makinacorpus/django-leaflet#124

@Rikuoja
Copy link
Contributor Author

Rikuoja commented Nov 2, 2017

At any rate, this must be discussed later, before we decide if, when and how we will try to implement this :)

@Rikuoja
Copy link
Contributor Author

Rikuoja commented Nov 2, 2017

Another option, of course, would be to actually try and finish the PR to django-leaflet, it has been open for two years now. Might be useful for more general use too.

@SannaElijoki
Copy link
Contributor

Here is one example how #18 looks on GeoMedia now. The green feature (an important bird area) is picked to view and edit.
18_example_from_geomedia

@mingfeng
Copy link
Contributor

mingfeng commented Nov 6, 2017

I'm afraid our data size is more than a client side mapping tool can handle as vector geometries (i.e. let OpenLayers or Leaflet to draw feature geometry one by one). And IMHO, Django admin may not be the most suitable place to implement this kind of feature.

It seems to me that this is becoming more like a WebGIS application feature , and I think we need a map rendering server here, which can publish the feature data as map services (e.g. WMS).

@Rikuoja
Copy link
Contributor Author

Rikuoja commented Nov 6, 2017

Hm, how about displaying data by feature type? Then the amount of features (when zoomed in) is not too big?

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

No branches or pull requests

3 participants