https://code.google.com/p/zkgmapsz/issues/detail?id=27 Seems it is fixed.
chillworld ( 2013-12-20 14:28:13 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I have a gmaps with some gmarks. If I open one of this gmarks and close it using the cross button, I'm not able to open it again when the gmark is clicked. I copied the code from zk demo http://www.zkoss.org/zkdemo/reporting/google_map?search=gmap and in the demo is impossible to reopen it too.
How can this be solved?
Thank you
The bug is not solved but I have found a solution to it. I Debug my application and I realize that althought the gmarker is closed the property open is set to true (gmarker.isOpen() returns true). And it seems that this is the reason why it doesn't open again when you click on it. So, in the onMapClick before doing the setOpen to true to open it, I force it to be closed with setOpen(false), This is the code:
public void onMapClick$MapaLocalizacionCentros(ForwardEvent event){
MapMouseEvent mme = (MapMouseEvent) event.getOrigin();
if(mme.getGmarker()!=null){
//Abrimos el marker
mme.getGmarker().setOpen(false); //This line says to the gmarker that is closed. Without this line it thoughts that is always open and it is impossible to reopen it again
mme.getGmarker().setOpen(true);
}
}
https://code.google.com/p/zkgmapsz/issues/detail?id=27 Seems it is fixed.
chillworld ( 2013-12-20 14:28:13 +0800 )editAsked: 2013-02-25 07:56:40 +0800
Seen: 49 times
Last updated: Mar 27 '13
Did you mean reopen info winodw? If yes, it seems a bug, you can post issue tracker in google code.
vincentjian ( 2013-02-26 09:05:17 +0800 )editYes the info window of the gmarker. I can't post the bug, the submit issue button is disabled.
Neus ( 2013-02-26 11:19:11 +0800 )editI tried to submit it today because I saw that i t was under maintenance yesterday but It's still imposible. Could you help me @vincentjian?
Neus ( 2013-02-28 07:50:16 +0800 )editIt should be able to post issue now, notice that Summary field is necessary to submit.
vincentjian ( 2013-03-01 07:32:46 +0800 )edithttps://code.google.com/p/zkgmapsz/issues/detail?id=27
Neus ( 2013-03-01 08:13:16 +0800 )edit