Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
url: 'http://{s}.tile.osm.org/{z}/{x}/{y}.png'
}),
_react2['default'].createElement(
_reactLeaflet.LayerGroup,
null,
_react2['default'].createElement(_reactLeaflet.Circle, { center: center, fillColor: 'blue', radius: 200 }),
_react2['default'].createElement(_reactLeaflet.Circle, { center: center, fillColor: 'red', radius: 100, stroke: false }),
_react2['default'].createElement(
_reactLeaflet.LayerGroup,
null,
_react2['default'].createElement(_reactLeaflet.Circle, { center: [51.51, -0.08], color: 'green', fillColor: 'green', radius: 100 })
)
),
_react2['default'].createElement(
_reactLeaflet.LayerGroup,
null,
_react2['default'].createElement(_reactLeaflet.Rectangle, { bounds: rectangle, color: 'black' })
)
);
}
}]);
var rectangle = [[51.49, -0.08], [51.5, -0.06]];
return _react2['default'].createElement(
_reactLeaflet.Map,
{ center: center, zoom: 13 },
_react2['default'].createElement(_reactLeaflet.TileLayer, {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
url: 'http://{s}.tile.osm.org/{z}/{x}/{y}.png'
}),
_react2['default'].createElement(
_reactLeaflet.LayerGroup,
null,
_react2['default'].createElement(_reactLeaflet.Circle, { center: center, fillColor: 'blue', radius: 200 }),
_react2['default'].createElement(_reactLeaflet.Circle, { center: center, fillColor: 'red', radius: 100, stroke: false }),
_react2['default'].createElement(
_reactLeaflet.LayerGroup,
null,
_react2['default'].createElement(_reactLeaflet.Circle, { center: [51.51, -0.08], color: 'green', fillColor: 'green', radius: 100 })
)
),
_react2['default'].createElement(
_reactLeaflet.LayerGroup,
null,
_react2['default'].createElement(_reactLeaflet.Rectangle, { bounds: rectangle, color: 'black' })
)
);
}
}]);