Opened 12 years ago

Closed 12 years ago

#328 closed defect (fixed)

ZoomTo - need projection validation

Reported by: adube Owned by:
Priority: major Milestone: 1.0.0
Component: widgets Version:
Keywords: Cc:

Description (last modified by adube)

issue

The ZoomTo widget currently doesn't validate if the projection file exists when including it, which can result in throwing javascript errors or simply make the reprojection not working.

solution

Since it's not possible to detect if a file exists in xslt, do the validation in javascript by validating that the projection exists in the !Proj4js.defs object. If it doesn't, alert an error message.

widget status

I consider this a required for the widget to be considered stable in 1.0. If not fixed, then mark as unstable and push ticket to 1.2.

Change History (2)

comment:1 by adube, 12 years ago

Description: modified (diff)

comment:2 by adube, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r1175 with a simple alert when the projection isn't loaded in Proj4js.

Note: See TracTickets for help on using tickets.