Opened 16 years ago

Closed 15 years ago

Last modified 14 years ago

#251 closed enhancement (fixed)

Create a Client Redlining Task Pane widget

Reported by: pagameba Owned by: aboudreault
Priority: P1 Milestone:
Component: Widgets Version: SVN
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

Create a task pane widget that allows the user to:

  • create a new vector layer in the client
  • digitize points, lines and polygons on the layer
  • save the layer as a GML file
  • upload a previously saved GML file

Change History (9)

comment:1 by jbirch, 16 years ago

It would be useful to be able to persist the vector layer on the server. In MapGuide, this would be as data+layerdefinition; not sure how this would work in MapServer.

Will it be possible to style the vector layer? Are you planning to persist the styling information in the GML?

Will it be possible to "render" the vector layer so that it can be printed? For my users, printing (to paper or pdf) would be one of the primary use cases for redlining.

comment:2 by aboudreault, 16 years ago

I have made and committed the first prototype of the redlining widget in r1832. For future enhancement, i will let Paul or Mike answer. For the moment, there is no persistent layer on the server. We can only save/upload a GML file. The styling information is not saved in the GML neither.

  • ApplicationDefinition extension:
    • TaskPane: the id of the html element to plate the task pane
    • DefaultControl: the default control that should be activated
    • UploadDirectory: the upload directory where the uploaded files are saved. That directory have to be accessible from the web Default is "/uploads/" (see also upload.php)
    • FeatureStyle: the default feature style. You can put any feature style property here. The properties will be add to the OpenLayers.Style object. ie:
       <Widget xsi:type="UiWidgetType">
         <Name>toolbarRedline</Name>
         <Type>Redline</Type>
         <StatusItem>Digitizing tool</StatusItem>
         <Extension xsi:type="CustomContentType">
           <Target>TaskPane</Target>
           <FeatureStyle>
             <fillColor>#0f0Ff0</fillColor>
             <strokeColor>#0133F1</strokeColor>
             <strokeWidth>5</strokeWidth>
           </FeatureStyle>
           <UploadDirectory>/uploads/</UploadDirectory>
           <DefaultControl>Rectangle</DefaultControl>
         </Extension>
         <ImageUrl>images/icons.png</ImageUrl>
         <ImageClass>Digitize</ImageClass>
         <Tooltip>Digitize</Tooltip>
         <Label>Digitize</Label>
         <Disabled/>
       </Widget>
      

NOTE: the defaultFeatureStyle property of the widget should be modified.

comment:3 by pagameba, 16 years ago

(In [1842]) re #251, some Google support changes to make it possible to overlay stuff.

comment:4 by pagameba, 16 years ago

opps, that comment should have been in #252 ...

comment:5 by pagameba, 16 years ago

(In [1850]) re #251, update OpenLayers.js to include the required capabilities for redlining and modify redline task pane code to use timeout instead of interval as the interval was never clearing for me.

comment:6 by pagameba, 16 years ago

(In [1851]) re #251, adding widget info file.

comment:7 by pagameba, 16 years ago

(In [1852]) re #251, wrong default icon

comment:8 by pagameba, 15 years ago

Resolution: fixed
Status: newclosed

closing fixed, any problems can be reported as new bugs.

comment:9 by madair, 14 years ago

Milestone: 2.1

Milestone 2.1 deleted

Note: See TracTickets for help on using tickets.