Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
    <client:config id="...">
        ...
        <view id="com.cohga.html.client.map.mapView">
            ...
            <mapEngine id="raster">
       <!-- your existing map engines will be listed here -->
       <options>     <mapEngine id="raster"/>
           <selection>false</selection> <mapEngine id="vector"/>
               <alpha>false</alpha><mapEngine id="labels"/>

              </options>
            </mapEngine>

            <mapEngine id="vector">
               <options>
                 <selection>false</selection>
                 <alpha>true</alpha>
               </options>
            </mapEngine>
<!-- then we add the new selection map engine at the end so it is drawn on top -->
            </mapEngine id="selection">
                <options>
                    <!-- tell the client map engine that this layer is for handing selections -->
                    <selection>true</selection>
                    <!-- ensure the the client knows that this map engine supports transparency -->
                    <alpha>true</alpha>
                </options>
            </mapEngine>
        </view>
    </client:config>

...