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
[3D] 3d tilt #2609
[3D] 3d tilt #2609
Conversation
c6e9c65
to
f6dd9d6
Compare
demo updated |
This reverts commit bfec7d8.
Thanks for any review. I don't really like the new |
// true is the selected background layer is not 3d compatible. | ||
scope.disabled = false; | ||
scope.$on('gaBgChange', function(evt, value) { | ||
scope.disabled = value.id == 'ch.swisstopo.swissimage'; |
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.
Why don't you use value.disable3d
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.
disable3d
property is only available in the background selector directive, not 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.
it shouldn't, The value
param should contains the disable3d
property.
value
is a bg object with an id
, a label
and a disable3d
if it exists
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.
oups, I was searching in the evt
object ...
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.
fixed, code updated
Question for everyone: shouldn't the mouse cursor change when hovering the 3D button and when 3D is disabled because the background layer is swissimage? Currently, the cursor is still a hand, which I think is confusing. |
@fredj, when I switch to 3D I sometimes get some big jump with a blue background before actually seeing the expected background. Is this a known issue? |
And when this occurs the map is not tilted after switching to 3D. I am not even sure the location is the same as the previous, 2D, location. |
yes, it's a known ol3-cesium issue |
This is correct. The UI will by done by swisstopo. |
I've fixed the css cursor when the feature is disabled or not available |
// true is the selected background layer is not 3d compatible. | ||
scope.disabled = false; | ||
scope.$on('gaBgChange', function(evt, value) { | ||
scope.disabled = !!value.disable3d; |
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.
Why !!
? value.disable3d
is a boolean value already, no?
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.
boolean
or undefned
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.
Oh yes, true.
No more comments from me. |
LGTM. Artwork still remains to be done. But I'll merge this. Thanks alot. |
No description provided.