carbon / geomapeditor
Geo Inspector Editor for Neos CMS
Package info
github.com/CarbonPackages/Carbon.GeoMapEditor
Language:JavaScript
Type:neos-carbon
pkg:composer/carbon/geomapeditor
Requires
- neos/neos: ^7.3 || ^8.0 || ^9.0
README
GeoMapEditor.mp4
Installation
Most of the time you have to make small adjustments to a package (e.g. configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package.
composer require carbon/geomapeditor --no-update
The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Et voilĂ ! Your desired package is now installed correctly.
How to use it
'Foo.Bar:Map': properties: geo: type: array ui: label: Geo Location reloadIfChanged: true inspector: editor: 'Carbon.GeoMapEditor/Editor' editorOptions: zoom: 4
With editorOptions, you can alter each settings for a map.
Change global settings
The change the inital zoom or the position of the map change zoom and/or center. mapOptions is used to set the
settings for the map
Neos: Neos: Ui: frontendConfiguration: 'Carbon.GeoMapEditor': defaultTileLayer: url: https://tile.openstreetmap.org/{z}/{x}/{y}.png attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' mapOptions: scrollWheelZoom: false minZoom: 3 maxZoom: 18 attributionControl: true zoom: 13 center: lat: 46.948 lng: 7.459