jumpinjackie / mapguide-react-layout

An openlayers-based modern map viewer for MapGuide
https://jumpinjackie.github.io/mapguide-react-layout/
MIT License
62 stars 13 forks source link

Support for external WMS layers #324

Closed SoroTrestal closed 6 years ago

SoroTrestal commented 7 years ago

Hi Jackie, is there an option available in the viewer to serve WMS layers directly (i.e. add them to open layers as a source instead of adding them in MapGuide as a raster layer).

jumpinjackie commented 7 years ago

Not at the moment, but this is actually a useful feature to have.

jumpinjackie commented 7 years ago

Moving back milestone

jumpinjackie commented 7 years ago

Good news! I've got a basic UI in place for adding custom layers.

add-wms-layer

Initial focus will be for adding WMS (and possibly WFS) layers, which we'll then expand to cover additional vector and raster formats supported by OpenLayers

jumpinjackie commented 6 years ago

How to access this feature:

Add an InvokeURL command that has a URL of component://AddManageLayers

Example XML fragment to put into your Fusion widget set:

    <Widget xsi:type="UiWidgetType">
      <Name>AddManageLayers</Name>
      <Type>InvokeURL</Type>
      <Location />
      <Extension>
        <Target>TaskPane</Target>
        <Url>component://AddManageLayers</Url>
        <DisableIfSelectionEmpty>false</DisableIfSelectionEmpty>
        <AdditionalParameter />
      </Extension>
      <ImageUrl />
      <ImageClass>layer_add</ImageClass>
      <Label>Add/Manage Layers</Label>
      <Tooltip />
      <StatusText />
      <Disabled>false</Disabled>
    </Widget>