I would like to know what I have to take into account if I want to include a Google map as a base in my project.
From what I understand by running the following command:
web mvc geo controller --class ~.web.MapController --preferredMapping map
The base geoportal includes by default a layer with the cartography of "Open Street Maps", I would like that map to be Google Streets.
Currently this type of layer is not supported in gvNIX.
Yes, there is a leaflet plugin that allows you to add it ( in this post they explain how to do it for a page with a loose leaflet), but if you include it in your map generated with gvNIX you will have to do it by hand (using JavaScript) and it will not be integrated with the tools provided by gvNIX (such as TOC management).
To integrate it, a new type of gvNIX layer would have to be generated. This is possible to do but it is not very easy. The steps would be:
.tagx
to manage it based on the one from Tile, for example.GvNIX_Map_Leaflet.LAYERS
( Tile layer example ) in a new file.js
.js
in the fileload-scripts.tagx
.jspx
of the page.Depending on your knowledge in all this (JavaScript, jsp) it can be a bit complex or very difficult.
Luck!