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

v2.0 #85

Open
tafelnl opened this issue Jun 17, 2021 · 23 comments
Open

v2.0 #85

tafelnl opened this issue Jun 17, 2021 · 23 comments
Labels
enhancement New feature or request
Milestone

Comments

@tafelnl
Copy link
Member

tafelnl commented Jun 17, 2021

This plugin is already quite good. But IMHO it still misses a few things to be a full fletched alternative to cordova-plugin-googlemaps in production.

I like to propose the following issues to be added to a possible milestone for v2.0 of this package. I considered a major release tag since some of the changes below are braking to 'old' API.

  1. The API should be unified to be completely the same on Android and iOS. At the moment event listeners and API calls have different names on both platforms. They should be the same.
  2. (Refactor: Split the Plugin class into smaller classes #8) Plugin classes should be split up in multiple classes
  3. Multiple map instances should be possible at once. The point above simplifies this. I already have a working proof-of-concept for Android.
  4. (Custom icon marker in SVG #15 & Marker icon not changing #44) Custom marker icons should be refactored to be fully supported and support vectors (and when possible svg's, but I do not think that is a hard requirement).
  5. (feat(map): cover map with HTMLElements #84) It should be possible for HTMLElements to overlap the map.
  6. Ideally, support for custom info windows is added. It would be even more interesting to support html content as an info window.
  7. Documentation should be updated. It should also be more clear. (Add docs using capacitor/docgen #17 & Reverse Geocoding Docs #4) have a WIP on these but slow progress.
  8. (Drawings on the map: Ground overlays #2 & Drawings on the map: Tiles #3) Finish drawing methods. Working local prototypes, need to cleanup and push. Could be a part of v2.

When above issues are addressed it is pretty much on par with the cordova maps, I think. Also, point 1, 2 and 3 I am already working on.

What do you think about this? Do you have any other important issues in mind that should be addressed?

__

On a side note: when releasing v2.0, it might be a good idea to change the name to capacitor-community/google-maps. This change addresses possible confusing about "capacitor" being two times in the name. Above all, the omitting of the word "native" opens up possibilities to also support web in the future.

@tafelnl tafelnl added the enhancement New feature or request label Jun 17, 2021
@hemangsk hemangsk modified the milestones: v1.2.0, v2.0 Jun 17, 2021
@hemangsk
Copy link
Contributor

Sounds like a plan! I agree with all the points. Thanks a lot for chalking everything out in details.

Documentation should be updated. It should also be more clear.
(#17 & #4) have a WIP on these but slow progress.

Do you have any other important issues in mind that should be addressed?
(#2 and #3) have got working prototypes locally, need to cleanup and push. Could be a part of v2.

👍 big thumbs up on the sidenote, we'll sync with Capacitor maintainers and get the renaming process done. I'm not sure how the npm rename mechanism will be like.

@hemangsk
Copy link
Contributor

@tafelnl , pls feel free to ping me I can assist with anything. Really looking forward to this

@hemangsk
Copy link
Contributor

@tafelnl
Copy link
Member Author

tafelnl commented Jun 28, 2021

Progress can be seen here: https://github.com/DutchConcepts/capacitor-google-maps/tree/next

New API proposal: https://github.com/DutchConcepts/capacitor-google-maps/blob/next/API_REFERENCE.md

@J-Gonzalez
Copy link

@tafelnl - WIP is looking great! The CustomMapView file with the listeners is 👍 . Just need the setOnCameraIdleListener also added there and I think we're almost golden from my initial look through

@hemangsk
Copy link
Contributor

hemangsk commented Jul 3, 2021

I tried the vue3 app in examples, looks perfect. @tafelnl can you please create a PR?

Also @tafelnl , could you please consider becoming a maintainer for this plugin? :) We could really use your expertise over here to move this project in a proper direction 🖖

@tafelnl
Copy link
Member Author

tafelnl commented Jul 5, 2021

Thanks for testing them out @hemangsk ! I'd love to help out with maintaining this plugin. Can you add me as a collaborator?

@selected-pixel-jameson
Copy link

Thank you for your work. I would stress that without #5 IMHO this library can't be considered as a production ready solution. #5 should be prioritized above #4 and #3. I have multiple production apps that need #5 implemented before we would be able to use this solution. I would be willing to donate / pay someone to work on getting #5 implemented ASAP.

@DwieDima
Copy link

DwieDima commented Jul 9, 2021

Thank you for your work. I would stress that without #5 IMHO this library can't be considered as a production ready solution. #5 should be prioritized above #4 and #3. I have multiple production apps that need #5 implemented before we would be able to use this solution. I would be willing to donate / pay someone to work on getting #5 implemented ASAP.

@tafelnl i think @selected-pixel-jameson meant the issue #84 which is number five in your top comment list.

@tafelnl
Copy link
Member Author

tafelnl commented Jul 10, 2021

Ah my bad. In that case I can fully agree. I would be able to finish it. It's just that I am really busy with work. But I will see what I can do.

@ChiKaLiO
Copy link

@tafelnl if you can point me in the right direction, i want to help, specially on the svg pointer since i really need it

@DwieDima
Copy link

@tafelnl if you can point me in the right direction, i want to help, specially on the svg pointer since i really need it

This fork already got svg icons implemented. Maybe SnowBases could create an PR.

Snowbases@7b924f4

@tafelnl
Copy link
Member Author

tafelnl commented Jul 13, 2021

@ChiKaLiO I've tagged you in a comment about this here: #15 (comment)

@R-lagoman
Copy link

@tafelnl I'v been working with your fork, first impression is great.
I've seen in the Android module that you are using Android Maps SDK v3-beta (it also happens in this original library).

  1. Now it has been marked as deprecated. How does this affect the maintenance of the plugin in the long term?
  2. I don't know if Google is planning to incorporate v3 in the com.google.android.gms namespace or they are going to change it to the new com.google.android.libraries.maps. Apart of this, are you using features not available in v2?

Thanks in advance!

@selected-pixel-jameson
Copy link

@hemangsk I contracted @tafelnl out to help build out the feature set laid out in this item within his feature branch. https://github.com/DutchConcepts/capacitor-google-maps/tree/next

According to @tafelnl this is nearly complete but the iOS portion is still not correctly passing touch events. He's gotten busy and just hasn't had time to finish it up.

I would like to figure out how we can move forward and get this forked version complete and released.

From my understanding it works with Android. Just not iOS.

@hemangsk
Copy link
Contributor

hemangsk commented Feb 4, 2022

Thanks for testing them out @hemangsk ! I'd love to help out with maintaining this plugin. Can you add me as a collaborator?

@tafelnl , First off sincere apologies for the delay here, due to some unforeseen situation. Well I received a response from Thomas (from Ionic Team) on discord https://discord.com/channels/520266681499779082/908092045992816660/939219912470175805.

I'll update the README.md and add you as a maintainer but I'm not sure if you have proper access to this repo and whether you are able to create branches in this repo, could you please check? If you're not able to, then I'll ping Thomas about granting repo permissions.

@tafelnl
Copy link
Member Author

tafelnl commented Feb 8, 2022

@hemangsk I do not have access to this repo yet.

@hemangsk
Copy link
Contributor

hemangsk commented Feb 9, 2022

@tafelnl , Thomas has added you to the repo! :) 🚀

@tafelnl tafelnl pinned this issue Feb 21, 2022
@tafelnl
Copy link
Member Author

tafelnl commented Mar 16, 2022

Awesome news: a (pretty stable) beta version 2 has been released to npm under the name @capacitor-community/google-maps. Extensive documentation can be found here: https://capacitor-community.github.io/google-maps/

@trabdin
Copy link

trabdin commented Apr 4, 2022

@tafelnl , a question about the beta version 2, it feels like addListener doesn't work or am I missing something?
The only addListener method you can use seems to be the one where the event name has to be "didRequestElementFromPoint"?

Thanks

@tafelnl
Copy link
Member Author

tafelnl commented Apr 4, 2022

@trabdin Please refer to the documentation for the API reference. There's also an examples repo available. For your question, you could look at this line for example

@TartanLeGrand
Copy link

Do you plan to support typescript in the next version?

@tafelnl
Copy link
Member Author

tafelnl commented Apr 16, 2022

Typescript is already included in the next version :) you can test it out by installing the beta version from NPM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants