Improve docs and hooks-example for useMap
and MapProvider
#927
Annotations
4 errors and 7 warnings
test-node:
examples/get-started/hook/controls.jsx#L53
Expected to return a value at the end of arrow function
|
test-node:
examples/get-started/hook/controls2.js#L1
'useMap' is defined but never used
|
test-node:
examples/get-started/hook/map.jsx#L2
'useMap' is defined but never used
|
test-node
Process completed with exit code 1.
|
test-node:
examples/geocoder/src/control-panel.tsx#L3
'props' is defined but never used
|
test-node:
examples/terrain/src/control-panel.tsx#L3
'props' is defined but never used
|
test-node:
src/components/use-map.tsx#L22
Strings must use singlequote
|
test-node:
src/exports-maplibre.ts#L116
'@mapbox/point-geometry' should be listed in the project's dependencies. Run 'npm i -S @mapbox/point-geometry' to add it
|
test-node:
src/mapbox/mapbox.ts#L525
Method '_updateStyleComponents' has a complexity of 13. Maximum allowed is 11
|
test-node:
test/src/components/marker.spec.jsx#L9
Async arrow function has too many statements (32). Maximum allowed is 25
|
test-node:
test/src/utils/transform.spec.js#L6
Arrow function has too many statements (28). Maximum allowed is 25
|