Added geometries
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/openlayer-basic-widgets@130654 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
15b1f31f39
commit
26f16c17e1
|
@ -1,5 +1,6 @@
|
|||
eclipse.preferences.version=1
|
||||
jarsExcludedFromWebInfLib=
|
||||
lastWarOutDir=/home/giancarlo/workspace2/openlayer-basic-widgets/target
|
||||
launchConfigExternalUrlPrefix=
|
||||
warSrcDir=src/main/webapp
|
||||
warSrcDirIsOutput=false
|
||||
|
|
|
@ -342,8 +342,21 @@ public class AreaSelectionDialog extends DialogBox implements
|
|||
geometryFunction = ol.interaction.Draw
|
||||
.createRegularPolygon(3);
|
||||
|
||||
}
|
||||
} else {
|
||||
if (value === 'Pentagon') {
|
||||
value = 'Circle';
|
||||
geometryFunction = ol.interaction.Draw
|
||||
.createRegularPolygon(5);
|
||||
|
||||
} else {
|
||||
if (value === 'Hexagon') {
|
||||
value = 'Circle';
|
||||
geometryFunction = ol.interaction.Draw
|
||||
.createRegularPolygon(6);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@ import java.util.List;
|
|||
*/
|
||||
public enum GeometryType {
|
||||
Point("Point"), LineString("Line String"), Polygon("Polygon"), Circle(
|
||||
"Circle"), Triangle("Triangle"), Square("Square"), Box("Box"), None(
|
||||
"None");
|
||||
"Circle"), Triangle("Triangle"), Square("Square"), Pentagon(
|
||||
"Pentagon"), Hexagon("Hexagon"), Box("Box"), None("None");
|
||||
|
||||
/**
|
||||
* @param text
|
||||
|
|
Loading…
Reference in New Issue