#22357: Sometimes the OSMWidget highlights the outer area of a Polygon /
MultiPolygon
------------------------+------------------------------------
Reporter: babu | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: osm | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------+------------------------------------
Comment (by reinout):
Your screenshots aren't totally clear as they don't show the full picture.
Probably, in the "right" case the polygon's contents are highlighted and
in the two "wrong" cases the area *around* the polygon is highlighted
instead?
My first thought is about the order in which the polygon's points are
placed. Clockwise or counter-clockwise. In one of the two, the polygon
should be treated as a hole instead of an area.
But... you're using exactly the same database content. So the order of
points cannot have changed. Django's database layer will return the same
result, independent of the browser used.
The problem thus must be in the javascript that renders the map:
openlayers. Django uses openlayers.
Openlayers is loaded with a url:
https://docs.djangoproject.com/en/dev/ref/contrib/gis/admin/#django.contrib.gis.admin.GeoModelAdmin.openlayers_url
, currently http://openlayers.org/api/2.11/OpenLayers.js
I'd say: check if a newer openlayers version still has the problem or if
it is fixed.
To me, this almost cannot be a django problem. I'd suggest closing the
ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/22357#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.d8b3134c0b653c749f4ee7b2fec1774f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.