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

using the sdk with angular 2 #29

Closed
denkomanceski opened this issue May 22, 2016 · 5 comments
Closed

using the sdk with angular 2 #29

denkomanceski opened this issue May 22, 2016 · 5 comments

Comments

@denkomanceski
Copy link

Hi, I managed to use the plugin with angular2 but I am not able to add the event listeners on the map tag

(markerSelect)="onMarkerSelect"
(cameraChanged)="onCameraChanged"

I added brackets because thats how it should be in angular (I also tried without) but the functions do not seem to be called.

Anyone has any idea?

Thanks

@dapriett
Copy link
Owner

Maybe try (markerSelect)="onMarkerSelect($event)" and (cameraChanged)="onCameraChanged($event)"

@denkomanceski
Copy link
Author

I tried like that and it didnt work, than i saw the function was static :(

now it works.

Thanks

@FranciZ
Copy link

FranciZ commented Jan 8, 2018

@denkomanceski Hey, could you share how you managed to get this working. Below is my code that I can't get to work.

<MapView (mapReady)="onMapReady($event)"
                   (markerSelect)="onMarkerEvent($event)"
                   [latitude]="latitude"
                   [longitude]="longitude"
                   [zoom]="zoom"></MapView>

@FranciZ
Copy link

FranciZ commented Jan 8, 2018

Never mind. My issue with implementation.

@Julio77
Copy link

Julio77 commented Apr 9, 2018

Hello, any way to execute something after the marker selection is removed ?, for example, I want to show some controls when the marker is selected, this part I already have, but when I remove the marker selection and click on the map I do not know how to execute code to hide my views.

Thank you!

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

4 participants