Skip to content

expose centerzoom, public getBoundsCenterZoom and Anchor.forPos#306

Merged
johnpryan merged 2 commits intofleaflet:masterfrom
lpongetti:master
Jun 7, 2019
Merged

expose centerzoom, public getBoundsCenterZoom and Anchor.forPos#306
johnpryan merged 2 commits intofleaflet:masterfrom
lpongetti:master

Conversation

@lpongetti
Copy link
Copy Markdown
Contributor

Hi,
i'm creating a marker cluster plugin with all feature like animation and spiderfy, and this two edits can help me for don't rewrite you code.

Comment thread lib/src/map/map.dart
throw Exception('Bounds are not valid.');
}
var target = _getBoundsCenterZoom(bounds, options);
var target = getBoundsCenterZoom(bounds, options);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think a better way would be to expose this method on MapControllerImpl and MapController instead. Their purpose is to expose the methods on MapState

Copy link
Copy Markdown
Contributor Author

@lpongetti lpongetti Jun 7, 2019

Choose a reason for hiding this comment

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

Inside a plugin theres mapstate and not mapcontroller. So i need getBoundsCenterZoom public from mapstate.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I see, thanks for the clarification.

@lpongetti lpongetti mentioned this pull request Jun 7, 2019
@johnpryan johnpryan merged commit c28c439 into fleaflet:master Jun 7, 2019
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.

2 participants