Here is an example of a Google layer configuration (layer ID: "google"):
<?xml version="1.0" encoding="UTF-8"?> <layer xmlns="http://geomajas.org/schemas/configuration/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="google" xsi:type="rasterLayerInfo"> <label>Google normal</label> <visible>true</visible> <layerType>1</layerType> <crs>EPSG:900913</crs> <viewScale> <min>0</min> <max>50</max> </viewScale> <maxExtent> <minX>256779.44576658405</minX> <maxX>899274.9255782376</maxX> <minY>6324781.646007931</minY> <maxY>6955458.07432226</maxY> </maxExtent> <maxTileLevel>16</maxTileLevel> <rasterLayerFactoryRef>googleFactory</rasterLayerFactoryRef> <layerName>G_NORMAL_MAP</layerName> <tileWidth>256</tileWidth> <tileHeight>256</tileHeight> <style>1</style> </layer>
It references to a raster LayerFactory, called "GoogleFactory". This means that in your application.xml you will need a layer factory for Google layers. Here is how this would look like:
<rasterLayerFactory id="googleFactory"> <factoryClass>org.geomajas.layermodels.google.GoogleLayerFactory</factoryClass> <parameterMap /> </rasterLayerFactory>