We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef0110 commit 206a953Copy full SHA for 206a953
src/vis/MeasurementMap.tsx
@@ -135,7 +135,11 @@ const MeasurementMap = ({
135
setLLayer(L.layerGroup().addTo(_map));
136
137
const search = new (GeoSearchControl as any)({
138
- provider: new OpenStreetMapProvider(),
+ provider: new OpenStreetMapProvider({
139
+ params: {
140
+ countrycodes: 'us', // limit to USA
141
+ },
142
+ }),
143
style: 'bar', // optional: bar|button - default button
144
});
145
_map.addControl(search);
0 commit comments