Opened 12 years ago

Closed 12 years ago

#399 closed enhancement (fixed)

InitialView - support user-custom locations

Reported by: adube Owned by: adube
Priority: major Milestone: 1.2.0
Component: widgets Version: trunk
Keywords: bis-1.2.0 Cc:

Description

The InitialView widget currently support recentering on resource features using the featureserver service. It would be nice if it could also support using a list of user-custom locations setup inside the config itself.

Change History (1)

comment:1 by adube, 12 years ago

Resolution: fixed
Status: newclosed

r1282, featuring major changes to the InitialView widget. Below is a complete and detailed list of the changes that were made. The sample and documentation were both updated, so it might be a good idea to look at them too.

Unbound

The InitialView widget is now "unbound", so it no longer needs to be linked to resources in the config

LocalViews and ResourceViews

It can now be used with user-custom locations, which are called "localViews" and it can still be used with resources, which are called "resourceViews".

Number of widgets

  • (before) You needed to define one widget per resource and link it to the resource
  • (now) You only need to define one and you no longer need to link it to any resource

resource options

  • (before) options related to the resource were inside the widget options.
  • (now) resource options are now used instead

widget options modifications

  • defaultzoom -> maxZoom
  • urlfield removed. The initViewUrlField resource option is now used instead
  • queryfield removed. Didn't work anyway.
  • haslayer removed, wasn't useful.
  • unhighlightOnClick removed, no longer needed since we have the UnselectAll widget now which does this more gracefully.

new widget options

  • localViewField
  • localView
  • localViews/localView
  • vectorlayer

See in documentation to know more.

Conclusion

This completes the work done for this widget to support user-custom locations. It required a big change, but it was a nice one.

Note: See TracTickets for help on using tickets.