Opened 13 years ago
Closed 13 years ago
#334 closed defect (fixed)
WFSFilterBuilder - zoomToFeature js error
Reported by: | cdeschenes | Owned by: | adube |
---|---|---|---|
Priority: | major | Milestone: | 1.2.0 |
Component: | widgets | Version: | |
Keywords: | Cc: | adube |
Description (last modified by )
Issue
When the WFSFilterBuilder widget isn't linked to a QueryOnClick widget, zooming on a feature (with the zoom button in the result grid) throws a javascript error. This is caused because it uses the feature.layer.map to access the map.
Solution
The map object is already available in the FilterButton, so it could be used when creating the result grid as an API property.
Attachments (4)
Change History (7)
by , 13 years ago
Attachment: | FeatureGridResult.patch added |
---|
comment:1 by , 13 years ago
Component: | documentation → widgets |
---|---|
Description: | modified (diff) |
Keywords: | filterBuilder js zoom error removed |
Milestone: | 1.0.0 → 1.2.0 |
Priority: | minor → major |
Summary: | no layer cause error when click on "zoom on feature" button in wfsfilterbuilder → WFSFilterBuilder - zoomToFeature js error |
Type: | enhancement → defect |
Version: | 1.0 |
comment:2 by , 13 years ago
The patch is not valid. 'map' can't be used as a global variable, it has to be set as an API property of the result grid using the one in the filter button.
by , 13 years ago
Attachment: | patch-wfsfilterbuilder-zoomtofix-334-r1166-A3.diff added |
---|
New valid patch
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r1167, thanks for the patch.
execute in .\src\client\widgets\wfsfilterbuilder