Opened 17 years ago
Closed 17 years ago
#8113 closed (fixed)
Google zoom fails when geom envelope is a single point
| Reported by: | santiago_aguiar | Owned by: | nobody |
|---|---|---|---|
| Component: | GIS | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
django.contrib.gis.maps.google.zoom.get_width_height fails when then envelope it's a single point. Only happens in extreme cases (point or polygons in which all the points are the same).
The provided patch just returns width=0, height=0, and the zoom level is eventually returned as 18.
Attachments (1)
Change History (3)
by , 17 years ago
| Attachment: | geodjango_google_zoom_env.patch added |
|---|
comment:1 by , 17 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Simple patch