Hello,

I'm struggled trying to find the way to add a new custom layer to the Cartaro map. I created the Layer using postgis and already checked it in Geoserver's layer preview, my problem starts when I try, with Drupal user interface, to include that custom layer as a new layer for the Cartaro map (as the "capital" demo layer is), I can't find the way/options to do it, Shall I enable the Views module? or should I do it directly coding into the html file?.

Any help or orientation would be appreciated,

Thanks and best regards,
Rafa

Comments

augustus.kling’s picture

Your layer must be known to Cartaro or included using a service such as WMS.

To add your layer to the front end map ensure it is listed in Structure → OpenLayers → Layers. If it is missing there configure it using the Add link above the list.
Then navigate to Structure → OpenLayers → Maps and edit frontmap. You can enable your layer from the list that appears after clicking the Layers & Styles tab.

There is no need for the Views module or writing code manually.

kingkastle4004’s picture

Thanks Augustus,

Following your instructions I accomplished it!

Many thanks

augustus.kling’s picture

Status: Active » Closed (works as designed)
IKE0088’s picture

This worked flawlessly! Thanks so much. One question though, I cannot seem to get any of the features/attributes using WMS layer. It shows perfectly in Geoserver Openlayers preview but cannot get any information when clicking any of the polygons in Cartaro.

augustus.kling’s picture

For the reference: Friedjoff's comments in #1837012 should answer comment 4.