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 support for polylines and polygon #9

Closed
muka opened this issue Sep 11, 2013 · 12 comments
Closed

Add support for polylines and polygon #9

muka opened this issue Sep 11, 2013 · 12 comments

Comments

@muka
Copy link

muka commented Sep 11, 2013

Hi,
I've added support for polylines and polygon in my fork
https://github.com/muka/ti.map/tree/master/android/src/ti/map

Hope could be merged in the main repository.

Regards

@muka
Copy link
Author

muka commented Mar 10, 2014

Added either circle support and on click events (for polygon & polyline)

@andersdp
Copy link

Would be really great if this made it in to the main repository...

@ingo
Copy link
Contributor

ingo commented Nov 18, 2014

@muka We'd be happy to review this if you could do three things:

  1. Sign the CLA (http://developer.appcelerator.com/cla)
  2. Create a ticket in JIRA for the change so we know what it is and how to test it
  3. File a PR against the repository.

Thanks!
Ingo

@muka
Copy link
Author

muka commented Nov 19, 2014

Dear @ingo

1 Sorry, I don't see the reason to sign a document for a small contribution like this, could you explain me why I should sign?
2 Ticket is here https://jira.appcelerator.org/browse/TIMOB-15410
3 The PR would be incomplete as my fork cover only Android, but there is an IOS version (thanks to @astjohn) with a compatible API https://github.com/Sitata/ti.map/tree/drawing
I'd be happy to pack everything but, at the moment, I do not have nor the time nor the capabilities to do that..

Thanks!
Luca

@astjohn
Copy link
Contributor

astjohn commented Nov 19, 2014

@ingo - We can get this finished up in a few days from the Sitata fork. We've been testing polygons in particular pretty extensively, with the "old" google play services and the new. It's pretty much good to go.

@muka - thanks for reminding me about this. Were you able to clean up the android stuff a bit more? I will be happy to pull in your changes and formally submit this.

@muka
Copy link
Author

muka commented Nov 20, 2014

Hi @astjohn
Great! I've not yet cleaned it up, but let me a few days to finish it.
Thanks

@mikedias
Copy link

mikedias commented Feb 4, 2015

👍

@astjohn
Copy link
Contributor

astjohn commented Feb 5, 2015

@mikedias - We currently have a branch that you might want to check out that is more or less in stable condition.

https://github.com/Sitata/ti.map/tree/drawing_longpress_fix_ios

This branch add drawing support, but also:

  • Fixed the longpress event on iOS.
  • Fixed the fact that the "region" property was not updating on android during map pan events as iOS does.
  • Added dependency on 3.5.0.GA for ios8/64bit support.

I did notice that with 3.5.0.GA, @muka's click additions to shapes on Android no longer works. He's aware and working on a fix. Then I think we'll be ready to pull this into appcelerator if they accept it.

@mikedias
Copy link

mikedias commented Feb 5, 2015

Hi @astjohn, thank you for the tip! I hope to see this branch in the official releases soon!

@muka
Copy link
Author

muka commented Feb 7, 2015

@astjohn all good from my side!

For some obscure reasons using JSON.stringify / console.log to serialize the event object from the click callback seems to freeze the execution context (probably due to some kind of recursion?)
If there is a feedback on this I'll be happy to investigate further

master branch in https://github.com/muka/ti.map is up to date
If there are no more issues, 👍 to proceed!

@yozef
Copy link
Contributor

yozef commented Mar 13, 2015

@muka Works nicely :)

@astjohn
Copy link
Contributor

astjohn commented Mar 23, 2015

@muka, Thanks. Will be submitting now. Sorry it took me so long to finally wrap this up.

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

7 participants