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

Added setTouchEnabled to disable zoom, pan and drag. #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomafc330
Copy link

Added example usage as well as update release notes

@tomafc330
Copy link
Author

My use case was that we display a map of marker(s) but we don't allow the user to move the map. I think it's common enough of a use case that the Google v2 maps also support which is why I added the PR to include it in.

Let me know if you have any questions?

Best

Tommy

@@ -1,3 +1,6 @@
# 1.1.6
* Added setTouchEnabled() to enable/disable zoom, pan and drag
Copy link
Contributor

Choose a reason for hiding this comment

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

you can leave this part out -- we'll include it once we push an updated version to maven central, which may include additional changes

@tomafc330
Copy link
Author

@ericlevine thanks I'll make those changes.

@tomafc330 tomafc330 force-pushed the master branch 2 times, most recently from faa8279 to ee181a6 Compare May 27, 2015 16:45
return airMapInterface;
}

// case where it's not a native map, doesn't use AirGoogleMapOptions
Copy link
Author

Choose a reason for hiding this comment

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

@petzel I'm having a little bit of trouble with using the options for the NATIVE type -- it won't accept an instance of AirGoogleMapOptions (it takes an AirMapType).

Therefore I proceeded to using the code below. However, the OnMapLoadedListener gets overridden by this activity's onMapInitialized method. Is there a way for me to overcome this? Thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

should we instead place this setter into the builder, so we don't have to wait until initialization to set touch enabled/disabled?

Copy link
Author

Choose a reason for hiding this comment

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

@petzel the type AirMapType doesn't have access to the underlying map. Any ideas?

Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like adding this functionality to the sample app in the menu isn't the best way to do it. We should probably create a separate configuration screen, from which users can tweak all of the available settings for any type of map.

If you remove the changes from the sample app, it looks good to merge, then I can integrate it into the sample app in a separate configuration screen.

@petzel
Copy link
Contributor

petzel commented Mar 4, 2016

Hey @tommytcchan, any plans to address the final comments so we can merge this?

@tomafc330
Copy link
Author

Hi Eric,
Sure sorry -- let me send you something over the weekend.

Best

Tommy

On Thu, Mar 3, 2016 at 10:40 PM, Eric Petzel notifications@github.com
wrote:

Hey @tommytcchan https://github.com/tommytcchan, any plans to address
the final comments so we can merge this?


Reply to this email directly or view it on GitHub
#41 (comment).

@tomafc330 tomafc330 force-pushed the master branch 2 times, most recently from 0f372d3 to 11c1fe5 Compare March 7, 2016 01:16
@tomafc330
Copy link
Author

@petzel Updated the code after rebasing from origin/master -- also removed from the menu and sample app. Did test to make sure the new feature was working for both native and webmaps.

@tomafc330
Copy link
Author

@petzel Let me know what you think thanks

@tomafc330
Copy link
Author

@petzel TTT

@sreejithraman
Copy link

@tommytcchan, @petzel can we fix the conflicts to merge this? I would like to use this method.

@tomafc330
Copy link
Author

@petzel I can fix the conflicts if there is an intent to merge this in. Thanks

@guidedways
Copy link

Any update on this? This is needed for our use case as well

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.

5 participants