{"action":"created","issue":{"url":"https://api.github.com/repos/geosolutions-it/MapStore2/issues/190","labels_url":"https://api.github.com/repos/geosolutions-it/MapStore2/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/geosolutions-it/MapStore2/issues/190/comments","events_url":"https://api.github.com/repos/geosolutions-it/MapStore2/issues/190/events","html_url":"https://github.com/geosolutions-it/MapStore2/pull/190","id":109304701,"number":190,"title":"Add ZoomToMaxExtentButton component","user":{"login":"chrismayer","id":1185547,"avatar_url":"https://avatars.githubusercontent.com/u/1185547?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismayer","html_url":"https://github.com/chrismayer","followers_url":"https://api.github.com/users/chrismayer/followers","following_url":"https://api.github.com/users/chrismayer/following{/other_user}","gists_url":"https://api.github.com/users/chrismayer/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismayer/subscriptions","organizations_url":"https://api.github.com/users/chrismayer/orgs","repos_url":"https://api.github.com/users/chrismayer/repos","events_url":"https://api.github.com/users/chrismayer/events{/privacy}","received_events_url":"https://api.github.com/users/chrismayer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geosolutions-it/MapStore2/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-01T13:58:42Z","updated_at":"2015-10-02T09:39:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/geosolutions-it/MapStore2/pulls/190","html_url":"https://github.com/geosolutions-it/MapStore2/pull/190","diff_url":"https://github.com/geosolutions-it/MapStore2/pull/190.diff","patch_url":"https://github.com/geosolutions-it/MapStore2/pull/190.patch"},"body":"As described and discussed in #102 this PR adds a ZoomToMaxExtentButton component."},"comment":{"url":"https://api.github.com/repos/geosolutions-it/MapStore2/issues/comments/144975989","html_url":"https://github.com/geosolutions-it/MapStore2/pull/190#issuecomment-144975989","issue_url":"https://api.github.com/repos/geosolutions-it/MapStore2/issues/190","id":144975989,"user":{"login":"mbarto","id":2770528,"avatar_url":"https://avatars.githubusercontent.com/u/2770528?v=3","gravatar_id":"","url":"https://api.github.com/users/mbarto","html_url":"https://github.com/mbarto","followers_url":"https://api.github.com/users/mbarto/followers","following_url":"https://api.github.com/users/mbarto/following{/other_user}","gists_url":"https://api.github.com/users/mbarto/gists{/gist_id}","starred_url":"https://api.github.com/users/mbarto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbarto/subscriptions","organizations_url":"https://api.github.com/users/mbarto/orgs","repos_url":"https://api.github.com/users/mbarto/repos","events_url":"https://api.github.com/users/mbarto/events{/privacy}","received_events_url":"https://api.github.com/users/mbarto/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T09:39:58Z","updated_at":"2015-10-02T09:39:58Z","body":"Hi, Christian.\r\nThe most important thing is that the application state MUST be consistent.  So: \r\n * in the reducer you need to set all the properties (zoom, center, bbox) to represent the same map; since you have a bbox, you need to calculate the related center and zoom, and set all the 3 properties on the new state\r\n * then you don't need to change _updateMapPositionFromNewProps\r\n\r\nConsider that my desire is to remove the bbox from the state and make it a calculated property of center and zoom, so those 2 are the important properties for map navigation."}}