Migrate the map editor to mapbox-gl with react component
This commit is contained in:
parent
92edbd1724
commit
9aea1fffee
17 changed files with 5424 additions and 19 deletions
18
app/javascript/components/MapEditor/utils.js
Normal file
18
app/javascript/components/MapEditor/utils.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
export const ERROR_GEO_JSON = '';
|
||||
export const createFeatureCollection = selectionsUtilisateur => {
|
||||
return {
|
||||
type: 'FeatureCollection',
|
||||
features: selectionsUtilisateur
|
||||
};
|
||||
};
|
||||
|
||||
export const polygonCadastresFill = {
|
||||
'fill-color': '#EC3323',
|
||||
'fill-opacity': 0.3
|
||||
};
|
||||
|
||||
export const polygonCadastresLine = {
|
||||
'line-color': 'rgba(255, 0, 0, 1)',
|
||||
'line-width': 4,
|
||||
'line-dasharray': [1, 1]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue