fix(eslint): fix eslint warnings
This commit is contained in:
parent
1e46e437bb
commit
5d63ced246
6 changed files with 30 additions and 44 deletions
|
@ -13,20 +13,10 @@ import { useMapbox } from './useMapbox';
|
|||
const Mapbox = ReactMapboxGl({});
|
||||
|
||||
const MapReader = ({ featureCollection, options }) => {
|
||||
const {
|
||||
isSupported,
|
||||
onLoad,
|
||||
onStyleChange,
|
||||
onMouseEnter,
|
||||
onMouseLeave
|
||||
} = useMapbox(featureCollection);
|
||||
const {
|
||||
style,
|
||||
layers,
|
||||
setStyle,
|
||||
setLayerEnabled,
|
||||
setLayerOpacity
|
||||
} = useMapStyle(options.layers, { onStyleChange });
|
||||
const { isSupported, onLoad, onStyleChange, onMouseEnter, onMouseLeave } =
|
||||
useMapbox(featureCollection);
|
||||
const { style, layers, setStyle, setLayerEnabled, setLayerOpacity } =
|
||||
useMapStyle(options.layers, { onStyleChange });
|
||||
|
||||
if (!isSupported) {
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue