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

VGoogleMap bounds mistake #2

Closed
Rafaesp opened this issue Mar 27, 2014 · 1 comment
Closed

VGoogleMap bounds mistake #2

Rafaesp opened this issue Mar 27, 2014 · 1 comment

Comments

@Rafaesp
Copy link

Rafaesp commented Mar 27, 2014

Hi, you have a mistake in VGoogleMap class, lines 471 and 472.

if (uidl.hasVariable(VAR_BOUNDS_NE)) {
        LatLng sw = strToLatLng(uidl.getStringVariable(VAR_BOUNDS_NE));
        LatLng ne = strToLatLng(uidl.getStringVariable(VAR_BOUNDS_SW));
        LatLngBounds fitBounds = LatLngBounds.newInstance(sw, ne);
        map.fitBounds(fitBounds);
 }

NE string variable is assigned to sw and SW string is assigned to ne. This causes that, in server side, we have to swap parameters in the call to setBounds()

Thanks.

@wilds wilds closed this as completed Mar 28, 2014
@wilds
Copy link
Owner

wilds commented Mar 28, 2014

e417004
Fixed, thanks!

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

No branches or pull requests

2 participants