Ticket #251 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

Create a Client Redlining Task Pane widget

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

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

Changed 4 years ago by jbirch

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.

Changed 4 years ago by aboudreault

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.

Changed 4 years ago by pagameba

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

Changed 4 years ago by pagameba

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

Changed 4 years ago by pagameba

(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.

Changed 4 years ago by pagameba

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

Changed 4 years ago by pagameba

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

Changed 4 years ago by pagameba

  • status changed from new to closed
  • resolution set to fixed

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

Changed 3 years ago by madair

  • milestone 2.1 deleted

Milestone 2.1 deleted

Note: See TracTickets for help on using tickets.