-
Notifications
You must be signed in to change notification settings - Fork 509
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
coordinateToContainerPoint does not consider altitude #2486
Comments
Yeah,image marker is ready to render in maptalks-gl now. import { PointLayer } from 'maptalks-gl';
const layer = new PointLayer('points', [markers]).addTo(map);
import { PointLayer, GroupGLLayer } from 'maptalks-gl';
const group = new GroupGLLayer('group', []).addTo(map);
const layer = new PointLayer('points', [markers]).addTo(group); |
[email protected] for this fix is published. |
Thanks! I've just replaced VectorLayer with PointLayer and image markers render at full fps now it's silky smooth even with 60k markers. You got to allow disabling altitude in realtime though. I need to disable parallax effect for the top view, it was a big part of UX. This worked for VectorLayer but doesn't work for PointLayer anymore (and possibly, lineLayer too, haven't checked just yet): if (enableAltitude && autoAltitude) {
markerLayer.setOptions({enableAltitude: map.getPitch()!=0});
} Upd. would be even better to change heightFactor dynamically, something that maptalks did not support. |
Got it, I'll add support of enableAltitude |
maptalks's version and what browser you use?
1.0.1 chrome
Issue description
coordinateToContainerPoint does not use marker altitude
Please provide a reproduction URL (on any jsfiddle like site)
https://joric.github.io/stalker/index1.html
A bit offtopic but is it possible to render image markers in gl layer now?
Upd. I can get it like this though, but it doesn't seem intuitive:
The text was updated successfully, but these errors were encountered: