org.geomajas.gwt2.example.context.layerRivers50m.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geomajas-client-gwt2-example-jar Show documentation
Show all versions of geomajas-client-gwt2-example-jar Show documentation
Geomajas GWT2 client: Main - Examples
<!-- ~ This is part of Geomajas, a GIS framework, http://www.geomajas.org/. ~ ~ Copyright 2008-2015 Geosparc nv, http://www.geosparc.com/, Belgium. ~ ~ The program is available in open source according to the GNU Affero ~ General Public License. All contributions in this program are covered ~ by the Geomajas Contributors License Agreement. For full licensing ~ details, see LICENSE.txt in the project root. --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd" > <bean name="layerRivers50m" class="org.geomajas.layer.shapeinmem.ShapeInMemLayer"> <property name="url" value="classpath:org/geomajas/testdata/shapes/natural_earth/50m-rivers-lake-centerlines.shp"/> <property name="layerInfo" ref="layerRivers50mInfo" /> </bean> <bean name="layerRivers50mInfo" class="org.geomajas.configuration.VectorLayerInfo"> <property name="layerType" value="MULTILINESTRING"/> <property name="crs" value="EPSG:4326"/> <property name="maxExtent"> <!--bean class="org.geomajas.geometry.Bbox"> <property name="x" value="-140"/> <property name="y" value="30"/> <property name="width" value="80"/> <property name="height" value="45"/> </bean--> <!--<bean class="org.geomajas.geometry.Bbox">--> <!--<property name="x" value="-128.5"/>--> <!--<property name="y" value="16"/>--> <!--<property name="width" value="64.5"/>--> <!--<property name="height" value="35"/>--> <!--</bean>--> <bean class="org.geomajas.geometry.Bbox"> <property name="x" value="-181"/> <property name="y" value="-91"/> <property name="width" value="362"/> <property name="height" value="181"/> </bean> </property> <property name="featureInfo" ref="layerRivers50mFeatureInfo" /> <property name="namedStyleInfos"> <list> <ref bean="layerRivers50mStyleInfo" /> </list> </property> </bean> <bean class="org.geomajas.configuration.FeatureInfo" name="layerRivers50mFeatureInfo"> <property name="dataSourceName" value="50m-rivers-lake-centerlines"/> <property name="identifier"> <bean class="org.geomajas.configuration.PrimitiveAttributeInfo"> <property name="label" value="Id"/> <property name="name" value="ID"/> <property name="type" value="LONG"/> </bean> </property> <property name="geometryType"> <bean class="org.geomajas.configuration.GeometryAttributeInfo"> <property name="name" value="the_geom"/> <property name="editable" value="true"/> </bean> </property> <property name="attributes"> <list> <bean class="org.geomajas.configuration.PrimitiveAttributeInfo"> <property name="label" value="Name"/> <property name="name" value="NAME"/> <property name="editable" value="true"/> <property name="identifying" value="true"/> <property name="type" value="STRING"/> <property name="validator"> <bean class="org.geomajas.configuration.validation.ValidatorInfo"> <property name="toolTip" value="The name of the river."/> <property name="constraints"> <list> <bean class="org.geomajas.configuration.validation.NotNullConstraintInfo"/> </list> </property> </bean> </property> </bean> </list> </property> </bean> <bean class="org.geomajas.configuration.NamedStyleInfo" name="layerRivers50mStyleInfo"> <property name="featureStyles"> <list> <bean class="org.geomajas.configuration.FeatureStyleInfo"> <property name="name" value="Rivers"/> <property name="fillColor" value="#993333"/> <property name="fillOpacity" value="0"/> <property name="strokeColor" value="#FFFF00"/> <property name="strokeOpacity" value="0.8"/> <property name="strokeWidth" value="3"/> </bean> </list> </property> <property name="labelStyle"> <bean class="org.geomajas.configuration.LabelStyleInfo"> <property name="labelAttributeName" value="NAME"/> <property name="fontStyle"> <bean class="org.geomajas.configuration.FontStyleInfo"> <property name="color" value="#FFFFFF" /> <property name="family" value="Arial" /> <property name="size" value="12" /> <property name="opacity" value="1" /> </bean> </property> <property name="backgroundStyle"> <bean class="org.geomajas.configuration.FeatureStyleInfo"> <property name="fillColor" value="#000000"/> <property name="fillOpacity" value=".7"/> <property name="strokeColor" value="#FF0000"/> <property name="strokeOpacity" value="1"/> <property name="strokeWidth" value="1"/> </bean> </property> </bean> </property> </bean> </beans>