henrichen / zkgmapsz

Automatically exported from code.google.com/p/zkgmapsz
0 stars 0 forks source link

Error in onClick event in a Marker inside a GMaps Object #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://tracker.zkoss.org/browse/ZK-192
or
https://sourceforge.net/tracker/?func=detail&aid=3302980&group_id=152762&atid=78
5191

Gmaps
Hi everyone,

I'm having a problem when I add a forward acction in a marker to catch an 
onClick event in a marker inside a Gmaps Object. This is my source:

marker.addForward("onClick", this.self, "onMarkerClick", data);

The onMarkerClick method only have System.out.println("Hello").

When I try my application, it returns a javascript error like this:

Detalles de error de página web

Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; 
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; 
Media Center PC 6.0)
Fecha: Mon, 16 May 2011 18:42:12 UTC

Mensaje: 'getBoundingClientRect' is null or is not an object
Línea: 11
Carácter: 4947
Código: 0
URI: http://localhost:8080/multiplanes/zkau/web/471a3bbc/js/zk.wpd

Mensaje: 'getBoundingClientRect' is null or is not an object
Línea: 11
Carácter: 4947
Código: 0
URI: http://localhost:8080/multiplanes/zkau/web/471a3bbc/js/zk.wpd

I think it is a zk bug because the error message is not related with my code. 
This happens only when I add a forward acction to the onClick even.

If I add the onClick event catch in the zul file, I get the same error. In the 
sandbox already happens. I have try in the zk sandbox with this code with the 
same result:

<attribute name="onClick">
mylat.setValue(0);
mylng.setValue(0);
mymark.setOpen(true) ;
</attribute>

Original issue reported on code.google.com by simon....@gmail.com on 19 Jul 2011 at 4:42

GoogleCodeExporter commented 9 years ago
It has been identified as a ZK bug, I have posted a bug tracker in the 
following link
http://sourceforge.net/tracker/?func=detail&aid=3336745&group_id=152762&atid=785
191

Original comment by benbai...@gmail.com on 19 Jul 2011 at 4:49

GoogleCodeExporter commented 9 years ago

Original comment by benbai...@gmail.com on 19 Jul 2011 at 4:52