1 | | In wfs filter builder, when no feature layer exist, click on a "zoom on feature" button cause JS error when the script try to get map from feature.layer |
2 | | use directly map variable repair the broblem. |
| 1 | '''Issue''' |
| 2 | |
| 3 | 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. |
| 4 | |
| 5 | '''Solution''' |
| 6 | |
| 7 | The map object is already available in the !FilterButton, so it could be used when creating the result grid as an API property. |