-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alerts/ Support Multipoint #874
Comments
Haven't tested it, but I think this is all that's required in @@ -31,6 +31,7 @@ export const RemoteDectionAlertsMapLayer = () => {
'Point',
'MultiLineString',
'MultiPolygon',
+ 'MultiPoint',
],
['has', 'metadata.alert_type'],
['has', 'month_detec'],
@@ -59,7 +60,7 @@ export const RemoteDectionAlertsMapLayer = () => {
{/* Circle Layer for Points */}
<MapboxGL.CircleLayer
id="comapeo-alerts-point"
- filter={['==', '$type', 'Point']}
+ filter={['in', '$type', 'Point', 'MultiPoint']}
style={{
circleRadius: 5,
circleColor: '#FF0000', |
We could do it the way that Evan has recommended, the only thing is that it would be in-distinguishable from normal points. Does the CMI team want them styled differently (aka Not red dots) from the other alerts? |
@ErikSin they can be the same style (red dot) as other alerts |
Yes, generally there should be no need to style |
The front-end code (PR#844) supports displaying alerts of type Point, LineString, MultiLineString, Polygon and MultiPolygon.
It does not support
MultiPoint
ToDo
MultiPoint
The text was updated successfully, but these errors were encountered: