fix layersconfig connection

1) Fix according to https://github.com/geoadmin/mf-geoadmin3/pull/164
2) Fix map example