Opened 13 years ago

Last modified 13 years ago

#328 closed defect

ZoomTo - need projection validation — at Version 1

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 (1)

comment:1 by adube, 13 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.