Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
190d187
Update docusaurus.config.ts
mscno Aug 21, 2024
747011b
deps
mscno Aug 21, 2024
2f7bc3f
add leaflet docs link
mscno Aug 21, 2024
3c9a729
build first version of map libre docs
mscno Sep 18, 2024
0b80cfb
path fix
mscno Sep 18, 2024
55851ea
change header
mscno Sep 18, 2024
2e7f278
fix links
mscno Sep 18, 2024
b7e36a5
tweaks
mscno Sep 18, 2024
8af384a
fix links
mscno Sep 18, 2024
3066293
fix url
mscno Sep 18, 2024
c110cc3
tests
mscno Sep 18, 2024
923a24c
tmp remove all docs
mscno Sep 18, 2024
c6ba871
tweak maplibre
mscno Sep 23, 2024
9490ac7
tweak vercel
mscno Sep 23, 2024
93f56dc
test new baseurkl
mscno Sep 23, 2024
f595c30
test again
mscno Sep 23, 2024
3bd9fd9
fix vercel maplibre
mscno Sep 23, 2024
e361619
update vercel with root redir
mscno Sep 23, 2024
bf5838c
fix path
mscno Sep 23, 2024
c6b8d87
dummy files for all draw/edit/helper modes
zxwild Oct 23, 2024
cd3d4ac
basic demo map for each mode
zxwild Oct 23, 2024
ab970ef
update geoman maplibre version, typing fixes
zxwild Oct 23, 2024
3c27eb4
geojson features, required modes for demo maps
zxwild Oct 24, 2024
aeb14aa
basic documentation for edit modes
zxwild Oct 24, 2024
e4b6931
basic docs for draw modes
zxwild Oct 25, 2024
4f67e87
basic docs for helper modes
zxwild Oct 25, 2024
8b4bedd
basic operations docs: init, events, modes
zxwild Oct 25, 2024
38b810e
typo fixes
zxwild Oct 25, 2024
26b0f8f
events doc fix
zxwild Oct 25, 2024
298cd29
better geoman instantiating, shape markers fix
zxwild Oct 28, 2024
01dd062
more docs for mode handling methods
zxwild Oct 30, 2024
4f94cfa
fix auto enabled states for modes with actions
zxwild Oct 30, 2024
389e9b6
Update 01-basics.md
dailyprice Nov 10, 2024
cf157d8
Merge pull request #1 from geoman-io/doc_updates
mscno Nov 13, 2024
be11a4c
fix unquoted html tags
mscno Nov 13, 2024
7f16a6e
try fix clean urls
mscno Nov 13, 2024
206ec2c
Update index.md
dailyprice Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
geojson features, required modes for demo maps
  • Loading branch information
zxwild committed Oct 24, 2024
commit 3c27eb40ad3d98d6a31abc595712d3529668f5b1
5 changes: 4 additions & 1 deletion docs/edit-modes/00-edit-drag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Drag Mode on your map to allow users to drag geometries.
## Live Drag Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editDragOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={editDragOptions} />
<BrowserOnlyGmMap
gmOptions={editDragOptions}
features={features} />
6 changes: 5 additions & 1 deletion docs/edit-modes/01-edit-change.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ You can enable Change Mode on your map to allow users to change geometries.
## Live Change Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editChangeOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap
gmOptions={editChangeOptions}
features={features} />

<BrowserOnlyGmMap gmOptions={editChangeOptions} />
5 changes: 4 additions & 1 deletion docs/edit-modes/02-edit-rotate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Rotate Mode on your map to allow users to rotate geometries.
## Live Rotate Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editRotateOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={editRotateOptions} />
<BrowserOnlyGmMap
gmOptions={editRotateOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/edit-modes/03-edit-scale.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Scale Mode on your map to allow users to scale geometries.
## Live Scale Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editScaleOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={editScaleOptions} />
<BrowserOnlyGmMap
gmOptions={editScaleOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/edit-modes/04-edit-copy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Copy Mode on your map to allow users to copy geometries.
## Live Copy Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editCopyOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={editCopyOptions} />
<BrowserOnlyGmMap
gmOptions={editCopyOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/edit-modes/05-edit-cut.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Cut Mode on your map to allow users to cut geometries.
## Live Cut Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editCutOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={editCutOptions} />
<BrowserOnlyGmMap
gmOptions={editCutOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/edit-modes/06-edit-split.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Split Mode on your map to allow users to split geometries.
## Live Split Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editSplitOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={editSplitOptions} />
<BrowserOnlyGmMap
gmOptions={editSplitOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/edit-modes/07-edit-union.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Union Mode on your map to allow users to union geometries.
## Live Union Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editUnionOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/olverlapped-features.json';

<BrowserOnlyGmMap gmOptions={editUnionOptions} />
<BrowserOnlyGmMap
gmOptions={editUnionOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/edit-modes/08-edit-difference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Difference Mode on your map to allow users to difference geometri
## Live Difference Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editDifferenceOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/olverlapped-features.json';

<BrowserOnlyGmMap gmOptions={editDifferenceOptions} />
<BrowserOnlyGmMap
gmOptions={editDifferenceOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/edit-modes/09-edit-line_simplification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Line Simplification Mode on your map to allow users to line simpl
## Live Line Simplification Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editLineSimplificationOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={editLineSimplificationOptions} />
<BrowserOnlyGmMap
gmOptions={editLineSimplificationOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/edit-modes/10-edit-lasso.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Lasso Mode on your map to allow users to lasso geometries.
## Live Lasso Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editLassoOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={editLassoOptions} />
<BrowserOnlyGmMap
gmOptions={editLassoOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/edit-modes/11-edit-delete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Delete Mode on your map to allow users to delete geometries.
## Live Delete Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { editDeleteOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={editDeleteOptions} />
<BrowserOnlyGmMap
gmOptions={editDeleteOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/helper-modes/00-helper-snapping.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Snapping Mode on your map to allow users to have snapping on geom
## Live Snapping Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { helperSnappingOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={helperSnappingOptions} />
<BrowserOnlyGmMap
gmOptions={helperSnappingOptions}
features={features} />
6 changes: 5 additions & 1 deletion docs/helper-modes/01-helper-snap_guides.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ You can enable Snap Guides Mode on your map to allow users to have snap guides o
## Live Snap Guides Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { helperSnapGuidesOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={helperSnapGuidesOptions} />

<BrowserOnlyGmMap
gmOptions={helperSnapGuidesOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/helper-modes/02-helper-measurements.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Measurements Mode on your map to allow users to have measurements
## Live Measurements Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { helperMeasurementsOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={helperMeasurementsOptions} />
<BrowserOnlyGmMap
gmOptions={helperMeasurementsOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/helper-modes/04-helper-auto_trace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Auto Trace Mode on your map to allow users to have auto trace on
## Live Auto Trace Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { helperAutoTraceOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={helperAutoTraceOptions} />
<BrowserOnlyGmMap
gmOptions={helperAutoTraceOptions}
features={features} />
5 changes: 4 additions & 1 deletion docs/helper-modes/05-helper-zoom_to_features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ You can enable Zoom To Features Mode on your map to allow users to have zoom to
## Live Zoom to Features Example
import BrowserOnlyGmMap from '../../src/components/map/BrowserOnlyGmMap';
import { helperZoomToFeaturesOptions } from '../../src/components/examles/mode-options';
import features from '../../src/components/examles/geojson/basic-edit.json';

<BrowserOnlyGmMap gmOptions={helperZoomToFeaturesOptions} />
<BrowserOnlyGmMap
gmOptions={helperZoomToFeaturesOptions}
features={features} />
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@docusaurus/core": "^3.5.2",
"@docusaurus/preset-classic": "^3.5.2",
"@geoman-io/maplibre-geoman-pro": "^0.0.13",
"@geoman-io/maplibre-geoman-pro": "^0.0.14",
"@mdx-js/react": "^3.0.0",
"maplibre-gl": "^4.5.2",
"lodash-es": "^4.17.21",
Expand All @@ -28,6 +28,7 @@
},
"devDependencies": {
"@types/lodash-es": "^4.17.12",
"@types/geojson": "^7946.0.14",
"@docusaurus/module-type-aliases": "^3.5.2",
"@docusaurus/tsconfig": "^3.5.2",
"@docusaurus/types": "^3.5.2",
Expand Down
Loading