Opened 14 years ago

Closed 14 years ago

#582 closed enhancement (fixed)

setSpatialRequest - motion to add respect for scale hints for spatial request

Reported by: astrid_emde Owned by: dev
Priority: major Milestone: 2.7 release
Component: user interface Version: 2.6
Keywords: WFS scale Cc:

Description (last modified by astrid_emde)

  • at the moment the spatial request is triggered when a layer is visible and conected to a wfs_conf and is queryable

It would be a nice enhancement if we would respect minscale and maxscale of a layer.

A WFS request would only be triggered if the layer is visible and the scale is in-between minscale and maxscale.

We could provide a new variable in wfs_conf_filename:

  • var respectScaleHint = true;

The code would look like this:

if(o.gui_layer_wfs_featuretype != '' && o.gui_layer_visible == '1' && o.gui_layer_minscale <= mb_getScale(mod_wfs_spatialRequest_target) && o.gui_layer_maxscale >= mb_getScale(mod_wfs_spatialRequest_target)){
...

What do you think?

Change History (2)

comment:1 by astrid_emde, 14 years ago

Description: modified (diff)

comment:2 by astrid_emde, 14 years ago

Resolution: fixed
Status: newclosed

done

Note: See TracTickets for help on using tickets.