Geomajas Community Documentation
The LayerModel
class has been integrated in
VectorLayer
. This modifies the configuration. Where
before you would have written
<bean name="countriesModel" class="org.geomajas.layermodel.shapeinmem.ShapeInMemLayer"> <property name="url" value="classpath:shapes/africa/country.shp"/> </bean> <bean name="countries" class="org.geomajas.internal.layer.layertree.DefaultVectorLayer" > <property name="layerInfo" ref="countriesInfo" /> <property name="layerModel" ref="countriesModel" /> </bean>
into
<bean name="countries" class="org.geomajas.layer.shapeinmem.ShapeInMemLayer"> <property name="layerInfo" ref="countriesInfo" /> <property name="url" value="classpath:shapes/africa/country.shp"/> </bean>
Note that this includes changing "layermodel" to "layer" in all module and package names.
FeaturePainter
interface and related stuff has
been removed. These are obsolete with the introduction of the
VectorLayerService
.
GeotoolsLayer
has been renamed
GeoToolsLayer
.
With the change in directory structure, the commands have
moved from the org.geomajas.extension.command
package
to org.geomajas.command
. The LogCommand
has also been moved into the general
sub-package.
Security constraints are now applied in Geomajas. By default, nothing is authorized, so you always have to configure at least one security service. To go back to the old (allow-all) behaviour, include the following excerpt in your configuration file.
<bean name="security.securityInfo" class="org.geomajas.security.SecurityInfo"> <property name="loopAllServices" value="false"/> <property name="securityServices"> <list> <bean class="org.geomajas.security.allowall.AllowAllSecurityService"/> </list> </property> </bean>
Layers are now more sensitive to the attributes which are
defined for the layer. Attributes which have not been defined in the
feature info are not accessible this is the result of the
refactoring where the InternalFeature
store attributes
as Attribute
objects).