Opened 14 years ago

Last modified 12 years ago

#121 new enhancement

Database config - other - overwrite resource options

Reported by: adube Owned by:
Priority: minor Milestone: 1.8.0
Component: server Version:
Keywords: Cc:

Description

With the XMLWorkspaceConfig, you can overwrite options of objects inside a workspace. It would be interesting to do the same inside the new model.

There are two objects containing lists of objects :

  • mapcontext (contain resources)
  • application (contain widget)

IMHO, it appears useless to overwrite widget options inside an application. Since widget don't have resource-specific options in the new model, it's simpler to create an other widget of the same type, set the different options and simply use that other widget inside the application.

For the resources inside the mapcontext, that's an other story. It looks more useful to be able to redefine scales, extents, widget-related options (for example we could want a mapcontext to not add any zoom widgets at all). We could have a new mcconfig_mapcontextresourceoptions table for these changes.

Comments welcomed.

Change History (5)

comment:1 by adube, 14 years ago

resource option OR mapcontext resource option ?

In a way, 'resource options' should be used specifically to link resources to widget and to define some default layer options that are 100% sure to be always default.

Other kind of 'resource options' that are used for OpenLayers.Layer object creations should be defined as 'mapcontext resource options'. For example, setting 'opacity' to 0.50 as a resource option means that the data itself is 50% transparent (which is wrong). Setting the 'opacity' as a mapcontext resource option means that the layer added to the map (mapcontext) should be 50% transparent in this map (which is ok).

comment:2 by adube, 13 years ago

Milestone: 1.2.0

No patch : moved to 1.2.

comment:3 by adube, 12 years ago

Milestone: 1.2.01.4.0

No patch, pushed to 1.4.

comment:4 by adube, 12 years ago

Milestone: 1.4.01.6.0

No patch, pushed to 1.6.

comment:5 by adube, 12 years ago

Milestone: 1.6.01.8.0

No patch, pushed to 1.8.

Note: See TracTickets for help on using tickets.