Skip to content
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

Give Geolocation Control Marker Pitch Alignment Properties #8034

Closed
JohnCLo opened this issue Mar 14, 2019 · 2 comments
Closed

Give Geolocation Control Marker Pitch Alignment Properties #8034

JohnCLo opened this issue Mar 14, 2019 · 2 comments
Assignees

Comments

@JohnCLo
Copy link

JohnCLo commented Mar 14, 2019

Currently when the geolocation control marker is added to the map, the blue marker has no options to change color or set pitch such as "circle-pitch-alignment": "map". For aesthetic purposes, it may be useful for the marker to have more paint options that are exposed to a normal circle type layer.

Current:
Screen Shot 2019-03-13 at 11 21 56 PM

@JohnCLo JohnCLo changed the title Have Geolocation Control Marker respect Map Pitch Give Geolocation Control Marker Pitch Alignment Properties Mar 14, 2019
@andrewharvey
Copy link
Collaborator

The dot is implemented as a Marker (

this._userLocationDotMarker = new Marker(this._dotElement);
) so you can't use the normal pitch-alignment capabilities of using a Circle from the style spec, this would need to be implemented by watching the pitch change and updating the CSS of the Marker.

Originally the dot was done as a Circle, but due to issues with injecting this into the users style, we made it a Marker.

@mourner
Copy link
Member

mourner commented Jul 12, 2021

Fixed by #10817

@mourner mourner closed this as completed Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants