[fusion-users] RedLine

Josvil josue.villarreal at gmail.com
Tue Feb 23 12:33:01 EST 2010


Hi,
Using the widget Redline, add two icons, one to create points and the other
to create lines, the problem is as follows:
When I click on the icon of the point and then click on the icon of the
line, gives the following javascript error:

"this.activeControl is null"  Redline.js line 216

What causes the need to hit back on the line icon to activate the
functionality.

Then place the code used:
"   <Widget xsi:type="UiWidgetType">
      <Name>dibujarPunto</Name>
      <Type>Redline</Type>
	 <Extension>
        <FeatureStyle>
          <fillColor>#0f0Ff0</fillColor>
          <strokeColor>#0133F1</strokeColor>
          <strokeWidth>2</strokeWidth>
        </FeatureStyle>
          <DefaultControl>Point</DefaultControl>
          <activeControl>Control</activeControl>
      </Extension> 
      <ImageUrl>images/icons/point.gif</ImageUrl>
      <Tooltip>Crear un punto</Tooltip>
      <StatusText/>
      <Disabled>false</Disabled>
    </Widget>
    
    <Widget xsi:type="UiWidgetType">
      <Name>dibujarLinea</Name>
      <Type>Redline</Type>
      <StatusItem>Digitizing tool</StatusItem>
      <Extension xsi:type="CustomContentType">
        <FeatureStyle>
          <fillColor>#FFFFFF</fillColor>
          <strokeColor>#FFFFFF</strokeColor>
          <strokeWidth>2</strokeWidth>
        </FeatureStyle>
        <DefaultControl>Line</DefaultControl>
        <activeControl>Control</activeControl>
      </Extension>
      <ImageUrl>images/icons/linea.gif</ImageUrl>
      <Tooltip>Dibujar línea</Tooltip>
      <Disabled/>
    </Widget> "

Any information about it please warn me

Greetings
-- 
View this message in context: http://n2.nabble.com/RedLine-tp4620450p4620450.html
Sent from the Fusion Users mailing list archive at Nabble.com.


More information about the fusion-users mailing list