-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Miscellaneous mapbox tweaks #681
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
Conversation
- to skip over test the require a gl context, if gl isn't supported - allows us to run _some_ mapbox tests on CircleCI
- so that Point geojson can be displayed as mapbox circle layers - change layer attribute to be more one-to-one with the mapbox api, where styles of different layer types will be set in different container objects
|
bingo 💥 |
'Sets the circle color.', | ||
'Has an effect only when `type` is set to *circle*.' | ||
].join(' ') | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing opacity
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃 looks good to me! |
- it can lead to error in the case where mapbox doesn't have to requested font.
'If `type` is *line*, color corresponds to the line color', | ||
'If `type` is *fill*, color corresponds to the fill color', | ||
'If `type` is *symbol*, color corresponds to the icon color' | ||
].join(' ') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleaner, right?
- staying safe as some type change lead to exceptions
@chriddyp please review.
What this PR adds
mapbox.layers
types ➡️'circle'
and'symbol'
(along side the current'fill'
and'line'
). This allows GeoJSON point geometries to be drawn as mapboxcircle
or symbol layers.gl
context are now tested on CircleCI. So that hot fixes like 9c72548 won't be needed again. See 4a8563b for more.What this PR modifies
mapbox.layers
attribute changed a little. They are now more one-to-one with the mapbox layer specs where each layertype
gets a container object of its own to fill in style attribute. Note that color in inherited from container to container. See 32973fc for more details.mapbox.layers[i].type
default is now'circle'
. So that even Point GeoJSON can be seen with the default layer type.mapbox.layers[i].color
is now set layer-wide. It corresponds to the primary color of the layer regardless of its type.What this PR fixes
type
to'fill'
c1cd50c