All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.geomajas.gwt2.example.context.layerCountries110m.xml Maven / Gradle / Ivy

The newest version!
<!--
  ~ 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="layerCountries110m" class="org.geomajas.layer.shapeinmem.ShapeInMemLayer">
		<property name="layerInfo" ref="layerCountries110mInfo" />
        <property name="url" value="classpath:org/geomajas/testdata/shapes/natural_earth/110m_admin_0_countries.shp"/>
	</bean>

	<bean name="layerCountries110mInfo" class="org.geomajas.configuration.VectorLayerInfo">
		<property name="layerType" value="MULTIPOLYGON"/>
		<property name="crs" value="EPSG:4326"/>
		<property name="maxExtent">
			<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="layerCountries110mFeatureInfo" />
		<property name="namedStyleInfos">
			<list>
				<ref bean="layerCountries110mStyleInfo" />
			</list>
		</property>
	</bean>

    <bean class="org.geomajas.configuration.FeatureInfo" name="layerCountries110mFeatureInfo">
        <property name="dataSourceName" value="110m_admin_0_countries"/>
        <property name="identifier">
            <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                <property name="label" value="Name"/>
                <property name="name" value="NAME"/>
                <property name="type" value="STRING"/>
            </bean>
        </property>
        <property name="geometryType">
            <bean class="org.geomajas.configuration.GeometryAttributeInfo">
                <property name="name" value="the_geom"/>
                <property name="editable" value="false"/>
            </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="false"/>
                    <property name="identifying" value="true"/>
                    <property name="type" value="STRING"/>
                </bean>
                <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                    <property name="label" value="Name (long)"/>
                    <property name="name" value="NAME_LNG"/>
                    <property name="editable" value="false"/>
                    <property name="identifying" value="true"/>
                    <property name="type" value="STRING"/>
                </bean>
                <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                    <property name="label" value="Abbreviation"/>
                    <property name="name" value="ADM0_A3"/>
                    <property name="editable" value="false"/>
                    <property name="identifying" value="true"/>
                    <property name="type" value="STRING"/>
                </bean>
                <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                    <property name="label" value="Population"/>
                    <property name="name" value="PEOPLE"/>
                    <property name="editable" value="false"/>
                    <property name="identifying" value="true"/>
                    <property name="type" value="DOUBLE"/>
                </bean>
            </list>
        </property>
    </bean>

	<bean class="org.geomajas.configuration.NamedStyleInfo" name="layerCountries110mStyleInfo">
		<property name="featureStyles">
            <list>
                <bean class="org.geomajas.configuration.FeatureStyleInfo">
                    <property name="name" value="Countries: population > 100mil"/>
                    <property name="formula" value="(PEOPLE > 100000000)"/>
                    <property name="fillColor" value="#3333FF"/>
                    <property name="fillOpacity" value=".6"/>
                    <property name="strokeColor" value="#000033"/>
                    <property name="strokeOpacity" value=".8"/>
                    <property name="strokeWidth" value="1"/>
                </bean>
                <bean class="org.geomajas.configuration.FeatureStyleInfo">
                    <property name="name" value="Countries: population > 50mil"/>
                    <property name="formula" value="(PEOPLE > 50000000)"/>
                    <property name="fillColor" value="#6666FF"/>
                    <property name="fillOpacity" value=".6"/>
                    <property name="strokeColor" value="#000033"/>
                    <property name="strokeOpacity" value=".8"/>
                    <property name="strokeWidth" value="1"/>
                </bean>
                <bean class="org.geomajas.configuration.FeatureStyleInfo">
                    <property name="name" value="Countries: population > 10mil"/>
                    <property name="formula" value="(PEOPLE > 10000000)"/>
                    <property name="fillColor" value="#9999FF"/>
                    <property name="fillOpacity" value=".6"/>
                    <property name="strokeColor" value="#000033"/>
                    <property name="strokeOpacity" value=".8"/>
                    <property name="strokeWidth" value="1"/>
                </bean>
                <bean class="org.geomajas.configuration.FeatureStyleInfo">
                    <property name="name" value="Countries: population &lt; 10mil"/>
                    <property name="fillColor" value="#CCCCFF"/>
                    <property name="fillOpacity" value=".6"/>
                    <property name="strokeColor" value="#000033"/>
                    <property name="strokeOpacity" value=".8"/>
                    <property name="strokeWidth" value="1"/>
                </bean>
            </list>
		</property>
		<property name="labelStyle">
			<bean class="org.geomajas.configuration.LabelStyleInfo">
               <property name="labelAttributeName" value="PEOPLE"/>
                <property name="fontStyle">
					<bean class="org.geomajas.configuration.FontStyleInfo">
						<property name="color" value="#000000" />
						<property name="opacity" value="1" />
						<property name="family" value="Arial" />
						<property name="size" value="14" />
					</bean>
                </property>
                <property name="backgroundStyle">
                    <bean class="org.geomajas.configuration.FeatureStyleInfo">
                        <property name="fillColor" value="#FFFFFF"/>
                        <property name="fillOpacity" value=".7"/>
                        <property name="strokeColor" value="#000099"/>
                        <property name="strokeOpacity" value="1"/>
                        <property name="strokeWidth" value="1"/>
                    </bean>
                </property>
			</bean>
		</property>
	</bean>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy