0

impossible to reopen a gmark (even in zk demo)

asked 2013-02-25 07:56:40 +0800

Neus gravatar image Neus
1415 14

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

delete flag offensive retag edit

Comments

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 )edit

Yes 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 )edit

I 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 )edit

It should be able to post issue now, notice that Summary field is necessary to submit.

vincentjian ( 2013-03-01 07:32:46 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-03-26 08:12:54 +0800

Neus gravatar image Neus
1415 14

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);
}
}
link publish delete flag offensive edit

Comments

https://code.google.com/p/zkgmapsz/issues/detail?id=27 Seems it is fixed.

chillworld ( 2013-12-20 14:28:13 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-02-25 07:56:40 +0800

Seen: 49 times

Last updated: Mar 27 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More