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

Fix: Google Maps Doc page #1834

Merged
merged 61 commits into from
Aug 26, 2017
Merged

Fix: Google Maps Doc page #1834

merged 61 commits into from
Aug 26, 2017

Conversation

wf9a5m75
Copy link
Contributor

No description provided.

@wf9a5m75
Copy link
Contributor Author

@ihadeed Could you update the plugin?

And how to install the @ionic-native/googlemaps plugin from local.
Since I can not install the plugin from local, I can not test the code.

@ihadeed
Copy link
Collaborator

ihadeed commented Jul 31, 2017

@wf9a5m75

I'll take a look and publish it soon.

To install locally, you can run npm run build google-maps in the root directory of ionic-native. Then copy dist/google-maps directory and use it instead of the old node_modules/@ionic-native/google-maps in your Ionic app.

You can also use npm link but I'm not quite sure how that works.

@wf9a5m75
Copy link
Contributor Author

Ok, thank you. I will try it tomorrow

@wf9a5m75
Copy link
Contributor Author

wf9a5m75 commented Aug 9, 2017

As far as I understand, @Cordova decorator is for static class, isn't it?
I think @CordovaInstance because BaseClass is not static class.

I think there probably some mistakes in the index.ts, especially property names, constructor parameters.

@ihadeed
Copy link
Collaborator

ihadeed commented Aug 9, 2017

@wf9a5m75

Cordova and CordovaInstance work the same way. The only difference is:

  • Cordova applies method calls to the plugin's pluginRef
  • CordovaIntance applies method calls to this._objectInstance

@wf9a5m75
Copy link
Contributor Author

wf9a5m75 commented Aug 9, 2017

We haven't tested even 1/3 of all methods.

I appreciate if you join to the working channel on us, and join to the forked repo. Then you can modify, and we can also test it before merging to the ionic-team repo.

@wf9a5m75
Copy link
Contributor Author

wf9a5m75 commented Aug 9, 2017

Oh, I see.

@ihadeed
Copy link
Collaborator

ihadeed commented Aug 9, 2017

@wf9a5m75

Great!

I'll clone the repos and check them out soon.

@wf9a5m75
Copy link
Contributor Author

wf9a5m75 commented Aug 9, 2017

Thank you for jumping on!
You don't need to work on the ionic-googlemaps-demo repo, but you can test it.

@wf9a5m75
Copy link
Contributor Author

@ihadeed Well, we haven't checked all features yet, but at least lots of problems are fixed.
I really appreciate if you merge the code at once.
Thanks.

(Asking the problems of the current @ionic-native/googlemaps has been increasing...)

@wf9a5m75
Copy link
Contributor Author

@ihadeed Could you update the npm at once?

I haven't checked all features, but the merge reduces troubles currently reported (user code is correct, but the current plugin is bad).

@ihadeed ihadeed merged commit c11aec3 into danielsogl:master Aug 26, 2017
BuddyLReno pushed a commit to BuddyLReno/ionic-native that referenced this pull request Aug 28, 2017
* Update index.ts

* Update index.ts

* Add missing features, and bug fix of methods

* update: classname must be in pascal case

* remove: duplicated class definition

* export encode and spherical static classes

* Add comma

* Fix Encoding and Spherical

* Add convenience methods

* Fix decorators for Encoding and Spherical

* Update: getMap() methods return the instance of the wrapper plugin

* Update: getMap() methods return the instance of the wrapper plugin

* Remove `@CordovaInstance` decorators from getMap()

* Update: GoogleMapOptions (all fields are not optional).

* Follow up:  version `2.0.0-beta2-20170719-2226` of cordova-plugin-googlemaps

* Fix: tslint error

* Fix: tslint error

* No more isAvailable() method.

* Bug fix: description is incorrect

* Bug fix: example code was wrong.

* Bug fix: HtmlInfoWindow does not work
danielsogl#1815 (comment)

* Bug fix: HtmlInfoWindow does not work

* Bug fix: HtmlInfoWindow does not work

* Bug fix: HtmlInfoWindow does not work

* Bug fix: HtmlInfoWindow does not work

* It seems the ionViewDidLoad() is enough delayed after platform.ready()

* Bug fix: map.setDiv()

* Bug fix: HtmlInfoWindow does not work

* Bug fix: BaseArrayClass definition is incorrect

* Bug fix: BaseArrayClass constructor is wrong

* Bug fix: Geocoder class does not work

* Bug fix: LatLngBounds constructor is wrong

* update: noNotify option is not declared

* Bug fix: Geocoder.geocode() returns array of GeocoderResult

* Update: clarify acceptable parameters of BaseArrayClass

* Add: AnimateCameraOption.padding is missing

* Revert: BaseClass.empty() method does not have the noNotify option

* Add `destruct` option to the CordovaOption.

- This allows BaseClass.on() is able to pass multiple retuned values from the cordova plugin side to the event lister.

* A semicolon is mixing

* update: event names

* Update: BaseClass.addEventListener(), addEventListenerOnce(), on(), and one()

* Add: destruct option for otherPromise
Change: inside event names (must use the version 2.0.0-beta3-20170808-1950 or higher)

* Build for working group

* Bug fix: map.getCameraTarget() definition is incorrect

* Bug fix: The definition of VisibleRegion interface is incorrect

* Fix: LatLng, LatLngBounds, and PolylineOptions classes
Update: map.getVisibleRegion()

Add: VisibleRegion class

* Bug fix: the definition of map.clear() method is incorrect

* Fix: map.fromLatLngToPoint()

* Ignore the dist directory on the master branch

* Remove the dist folder on the master branch

* fixes and tweaks

* use union types for CameraPosition

fixes issue mentioned on slack by @wf9a5m75

* fix types

* update AnimateCameraOptions interface

* remove AnimateCameraOptions interface

* add MarkerCluster class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants