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

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

There is a newer version: 2.4.3
Show 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="layerPopulatedPlaces110m" class="org.geomajas.layer.shapeinmem.ShapeInMemLayer">
		<property name="layerInfo" ref="layerPopulatedPlaces110mInfo" />
        <property name="url" value="classpath:org/geomajas/testdata/shapes/natural_earth/110m_populated_places_simple.shp"/>
	</bean>

	<bean name="layerPopulatedPlaces110mInfo" class="org.geomajas.configuration.VectorLayerInfo">
		<property name="layerType" value="MULTIPOINT"/>
		<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="layerPopulatedPlaces110mFeatureInfo" />
		<property name="namedStyleInfos">
			<list>
				<ref bean="layerPopulatedPlaces110mStyleInfo" />
			</list>
		</property>
	</bean>

    <bean class="org.geomajas.configuration.FeatureInfo" name="layerPopulatedPlaces110mFeatureInfo">
        <property name="dataSourceName" value="110m_populated_places_simple"/>
        <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="Country"/>
                    <property name="name" value="ADM0NAME"/>
                    <property name="editable" value="false"/>
                    <property name="identifying" value="false"/>
                    <property name="type" value="STRING"/>
                </bean>
                <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                    <property name="label" value="World city"/>
                    <property name="name" value="WORLDCITY"/>
                    <property name="editable" value="false"/>
                    <property name="identifying" value="false"/>
                    <property name="type" value="INTEGER"/>
                </bean>
            </list>
        </property>
    </bean>

	<bean class="org.geomajas.configuration.NamedStyleInfo" name="layerPopulatedPlaces110mStyleInfo">
		<property name="featureStyles">
            <list>
                <bean class="org.geomajas.configuration.FeatureStyleInfo">
                    <property name="name" value="Worldcities"/>
                    <property name="formula" value="(WORLDCITY > 0)"/>
					<property name="fillColor" value="#663333" />
					<property name="fillOpacity" value=".75" />
					<property name="strokeColor" value="#333333" />
					<property name="strokeOpacity" value="1" />
					<property name="strokeWidth" value="1" />
					<property name="symbol">
						<bean class="org.geomajas.configuration.SymbolInfo">
							<property name="image">
								<bean class="org.geomajas.configuration.ImageInfo">
									<property name="href" value="image/layer/city1.png" />
									<property name="selectionHref" value="image/layer/city1_selected.png" />
									<property name="width" value="24" />
									<property name="height" value="32" />
								</bean>
							</property>
						</bean>
					</property>
                </bean>
                <bean class="org.geomajas.configuration.FeatureStyleInfo">
                    <property name="name" value="Other cities"/>
					<property name="fillColor" value="#CC3333" />
					<property name="fillOpacity" value=".7" />
					<property name="strokeColor" value="#333333" />
					<property name="strokeOpacity" value="1" />
					<property name="strokeWidth" value="1" />
					<property name="symbol">
						<bean class="org.geomajas.configuration.SymbolInfo">
							<property name="image">
								<bean class="org.geomajas.configuration.ImageInfo">
									<property name="href" value="image/layer/city3.png" />
									<property name="selectionHref" value="image/layer/city3_selected.png" />
									<property name="width" value="13" />
									<property name="height" value="20" />
								</bean>
							</property>
						</bean>
					</property>
                </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="#000000" />
						<property name="opacity" value="1" />
						<property name="family" value="Arial" />
						<property name="size" value="12" />
					</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 - 2024 Weber Informatics LLC | Privacy Policy