-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
a212677
to
0159552
Compare
4b9e1b7
to
3c51a80
Compare
3c51a80
to
0385b33
Compare
0385b33
to
c11f652
Compare
cc @mapbox/maps-android @mapbox/maps-ios |
c093475
to
ecca894
Compare
9a657b9
to
5539c79
Compare
baceaca
to
5e013ca
Compare
New key is "G" in mbgl-glfw, cycling between no puck, centered in the viewport and positioned in Tokyo.
This change introduces a new property type, Rotation, that uses a custom interpolator, and that is currently applied to all style properties named "bearing", with a period attribute.
5e013ca
to
3ceca27
Compare
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.
"top-image-size" : 16, | ||
"shadow-image-size" : 112, | ||
|
||
"accuracy-radius-color": "rgba(255,0,0,0.2)", |
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.
could you test zoom dependent radius color or image size? Using interpolate or step expression https://docs.mapbox.com/mapbox-gl-js/style-spec/expressions/#interpolate ?
"location" : [ 35.693055, 139.766707, 0], | ||
"accuracy-radius": 90.0, | ||
"bearing-image-size" : 48, | ||
"top-image-size" : 16, |
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.
all image-size
properties should be a scale factor, similar to icon-size
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.
Should we rename to image-scale then? calling these properties -size seems def. wrong
"accuracy-radius-transition": { "duration": 0, "delay": 0 }, | ||
"bearing-image-size-transition": { "duration": 0, "delay": 0 }, | ||
"top-image-size-transition": { "duration": 0, "delay": 0 }, | ||
"shadow-image-size-transition": { "duration": 0, "delay": 0 }, | ||
"accuracy-radius-color-transition": { "duration": 0, "delay": 0 }, | ||
"accuracy-radius-border-color-transition": { "duration": 0, "delay": 0 }, |
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.
these could be removed, from all tests
namespace { | ||
const std::string mbglPuckAssetsPath{MAPBOX_PUCK_ASSETS_PATH}; | ||
|
||
mbgl::Color premultiply(mbgl::Color c) { |
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.
you can use multiplication operator for color.
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.
that seems to multiply also alpha
"perspective-compensation": { | ||
"type": "number", | ||
"default": "0.85", | ||
"property-type": "data-constant", | ||
"expression": { | ||
"interpolated": true, | ||
"parameters": [ | ||
"zoom" | ||
] | ||
}, | ||
"doc": "The amount of the perspective compensation, between 0 and 1. A value of 1 produces a location indicator of constant width across the screen. A value of 0 makes it scale naturally according to the viewing projection." | ||
}, | ||
"image-tilt-displacement": { | ||
"type": "number", | ||
"property-type": "data-constant", | ||
"default": "0", | ||
"units": "pixels", | ||
"expression": { | ||
"interpolated": true, | ||
"parameters": [ | ||
"zoom" | ||
] | ||
}, | ||
"doc": "The displacement off the center of the top image and the shadow image when the pitch of the map is greater than 0. This helps producing a three-dimensional appearence." | ||
} |
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 like these properties are purely related to rendering, could be converted to paint properties?
}, | ||
"bearing-image-size": { | ||
"type": "number", | ||
"units": "pixels", |
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.
Change to scale factor
Launch Checklist
@mapbox/maps-android @mapbox/maps-ios @mapbox/core-sdk
if this PR adds or updates a public API@mapbox/gl-js
if this PR includes shader changes or needs a js portneeds changelog
label if a changelog is needed (remove label when added)