Opened 12 years ago

Closed 12 years ago

#398 closed enhancement (fixed)

XMLWorkspaceConfig - center and extent overrides

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

Description

#387 introduced setting the initial center/extent of the map using MapPanel widget options.

It would be nice to be able to override these in the workspace.

Change History (3)

comment:1 by adube, 12 years ago

Resolution: fixed
Status: newclosed

r1280, featuring :

  • new mappaneloptions node for the workspace tag that can be used to override any mappanel option
  • that way, it can be used to set a different center/extent for a workspace by overriding the centerString and zoom or extentString mappanel options.
  • the workspace widgets sample was updated to demonstrate that new feature inside one of its workspaces
  • documentation added to the mappanel widget doc inside the 'initial map center/extent' topic

comment:2 by adube, 12 years ago

Resolution: fixed
Status: closedreopened

The override doesn't work if the option value contains nodes. For example, this doesn't work :

<mappaneloptions>
  <centerString>1682372,220446</centerString> <!-- works -->
  <zoom>3</zoom> <!-- works -->
  <pageTitle> <!-- doesn't work -->
    <en_US>This is the WS_Toolbar workspace</en_US> 
    <fr_CA>Ceci est le workspace WS_Toolbar</fr_CA>
  </pageTitle>
</mappaneloptions>

comment:3 by adube, 12 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in r1310.

Note: See TracTickets for help on using tickets.