-
Notifications
You must be signed in to change notification settings - Fork 38
Expand support for "*-pitch-alignment" and "*-size-alignment" #459
Comments
👍 this makes total sense to me. It's worth noting that atm our renderers don't support this fully but it's something we can work toward. master gl js/native
unskew gl js/native
I'll sketch this property out in the |
Yup! I'd prefer that to designing our spec to around present partial renderer support. |
I’m implementing something similar for view-backed annotations on iOS in mapbox/mapbox-gl-native#5245. These properties will make it possible for gl-native to eventually support the same effects for GL point annotations too. |
This is 👌 . As a third complementary property, we'll want Full set of properties:
|
@johnnyluu - if you are looking for a workaround, defining a polygon with GeoJSON instead of using the Mapbox-defined Circle works pretty well. Here is the function I wrote to generate the GeoJSON Polygon
You can use it like this:
If you need to update the circle you created later you can do it like this (note the need to grab the
|
+1 |
|
This issue was moved to mapbox/mapbox-gl-js#4120 |
The style spec has the concept of
rotation-alignment
which specifies how features are placed with respect to map rotation.rotation-alignment: viewport
indicates that features should be rotated with respect to the viewport, drawn such that the top of the screen is "up".rotation-alignment: map
indicates that features should be rotated with respect to the map, drawn such that north is "up"I propose that we add the concept of
pitch-alignment
which specifies how features are placed with respect to map pitch.pitch-alignment: viewport
indicates that features should be pitched with respect to the viewport, drawn on plane of the viewport.pitch-alignment: map
indicates that features should be pitched with respect to the map, drawn on plane of the map.cc @yhahn @mourner @tmcw @ansis @jfirebaugh @lbud
The text was updated successfully, but these errors were encountered: