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

Add action to change map rotation #1273

Merged
merged 1 commit into from
Nov 15, 2016

Conversation

manisandro
Copy link
Contributor

Adds an action to programmatically change the map rotation. Only OpenLayers supports map rotation.

@simboss simboss added the ready label Nov 15, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 80.014% when pulling 03a761f on sourcepole:maprotation into 51cb7b2 on geosolutions-it:master.

@@ -37,7 +37,8 @@ var OpenlayersMap = React.createClass({
changeMeasurementState: React.PropTypes.func,
registerHooks: React.PropTypes.bool,
interactive: React.PropTypes.bool,
onInvalidLayer: React.PropTypes.func
onInvalidLayer: React.PropTypes.func,
bbox: React.PropTypes.object
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we don't use the bbox, apart from the rotation, I would only have a rotation property

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well currently bbox is passed to the Map component in any case (see plugins/Map.jsx@render:

<plugins.Map id="map"
                {...this.props.options}
                {...this.props.map}), // <---
                ...

) so I don't think it makes sense to pass the rotation separately when bbox is passed regardless?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, nice

@mbarto mbarto merged commit b5b3eb1 into geosolutions-it:master Nov 15, 2016
@mbarto mbarto removed the ready label Nov 15, 2016
@manisandro manisandro deleted the maprotation branch November 15, 2016 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants