Skip to content

Commit

Permalink
feat(SelectFeaturesButton): persist features collection and prop `cle…
Browse files Browse the repository at this point in the history
…arAfterSelect`
  • Loading branch information
simonseyock committed Jan 28, 2022
1 parent 4960e3f commit d4a5c5c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This demonstrates the use of the SelectFeaturesButton.

```jsx
import { useEffect, useState } from 'react';
import { useEffect, useState, useCallback } from 'react';

import OlMap from 'ol/Map';
import OlView from 'ol/View';
Expand All @@ -10,6 +10,7 @@ import OlSourceOsm from 'ol/source/OSM';
import OlVectorLayer from 'ol/layer/Vector';
import OlVectorSource from 'ol/source/Vector';
import OlFormatGeoJSON from 'ol/format/GeoJSON';
import SelectEvent from 'ol/interaction/Select';
import { fromLonLat } from 'ol/proj';

import MapContext from '@terrestris/react-geo/Context/MapContext/MapContext'
Expand Down

0 comments on commit d4a5c5c

Please sign in to comment.