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 click event on marker #6

Closed
ofirdagan opened this issue Feb 23, 2016 · 9 comments
Closed

Add click event on marker #6

ofirdagan opened this issue Feb 23, 2016 · 9 comments
Milestone

Comments

@ofirdagan
Copy link

Is it possible to run a click handler when a specific marker's box is clicked?

10x.

@rpereiraprieto
Copy link

i need a click handler on marker, please, help ...

@rpereiraprieto
Copy link

Hello,
and I did, adding the following to the show method :

_ if(settings.callBack){
var newListen=new com.mapbox.mapboxsdk.views.MapView.OnInfoWindowClickListener(
{
onMarkerClick:function(clickedMarker)
{
settings.callBack(clickedMarked);
return true;
}
}
);
mapView.setOnInfoWindowClickListener(newListen);
}_

and the call to show , setting the field to the function handler callBack
...
disableZoom: false, // default false
callBack:function(clickedMarker){ ... }

regards.

@EddyVerbruggen
Copy link
Collaborator

That's great, @rpereiraprieto! Would you mind sending a PR? I'm of course willing to polish it if that's needed but it would be great to have more folks contributing.

@rpereiraprieto
Copy link

Hi Eddy,

The method works fine, but only in android. I will wait for someone who make a complete solution for nativescript.

Thank you so much

Regards

Enviado desde mi iPhone

El 23 mar 2016, a las 10:23, Eddy Verbruggen notifications@github.com escribió:

That's great, @rpereiraprieto! Would you mind sending a PR? I'm of course willing to polish it if that's needed but it would be great to have more folks contributing.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@EddyVerbruggen
Copy link
Collaborator

If you submit the PR then I'll take a stab at the iOS implementation, promised 😇

@rpereiraprieto
Copy link

ok, i will submit the PR, when i have a few time, today i have a sunny day.

2016-03-26 16:58 GMT+01:00 Eddy Verbruggen notifications@github.com:

If you submit the PR then I'll take a stab at the iOS implementation,
promised [image: 😇]


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#6 (comment)

[image: Logo]

Ramón Pereira
635518821 · rpereira@adealoxica.com [image: skype]

Adealóxica Ingeniería Informática
Panama 16 · 36203 - Vigo
Tlf: 986122614 adealoxica@adealoxica.com · www.adealoxica.com

[image: eco] No me imprimas si no es necesario. Protejamos el medio ambiente

AVISO LEGAL: El contenido de este mensaje de correo electrónico, incluidos
los ficheros adjuntos, es confidencial y está protegido por el artículo
18.3 de la Constitución Española, que garantiza el secreto de las
comunicaciones. Si usted recibe este mensaje por error, por favor póngase
en contacto con el remitente para informarle de este hecho, y no difunda su
contenido ni haga copias.

*** Este mensaje ha sido verificado con herramientas de eliminación de
virus y contenido malicioso ***

Este aviso legal ha sido incorporado automáticamente al mensaje.

@EddyVerbruggen
Copy link
Collaborator

I just implemented this feature, landing in 1.2.0 real soon.

EddyVerbruggen added a commit that referenced this issue Jul 8, 2016
…ably) addresses these issues:

#2 Not working
#6 Add click event on marker
#10 Cannot find variable MGLMapViewDelegate
#14 iOS Marker added using addMarkers is jumpy when zoomin in/out
#15 Map not showing on Android 5.0.1 device
@burkeholland
Copy link

+1

@ofirdagan
Copy link
Author

👍 10x!

EddyVerbruggen added a commit that referenced this issue Apr 18, 2017
…ably) addresses these issues:

#2 Not working
#6 Add click event on marker
#10 Cannot find variable MGLMapViewDelegate
#14 iOS Marker added using addMarkers is jumpy when zoomin in/out
#15 Map not showing on Android 5.0.1 device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants