0

gmaps 2.0.9 or later

asked 2011-03-02 07:18:11 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

someone has gmaps 2.0.9 or later version?

in small talk has examples using this version but can not find anywhere.

thanks in advance.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2011-03-02 19:19:54 +0800

PeterKuo gravatar image PeterKuo
481 2

http://www.zkoss.org/download/zkgmaps.dsp

link publish delete flag offensive edit

answered 2011-03-03 05:36:38 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

the download page zkoss just have to download the version
2.0.5 and smalltalks are demanding version 2.0.9 or
later.
I have 2.0.5 version and currently have an event that not
works fine and should be because of that.

 mymap.addEventListener("onSelect", new EventListener() {

            public void onEvent(Event event) {
                try {
                    onClickMap((SelectEvent) event);
                } catch (Exception ex) {
                    Logger.getLogger(TesteGeoController.class.getName()).log(Level.SEVERE, null, ex);
                    //alert(ex.getCause().toString());
                }
            }
        });

   private void onClickMap(SelectEvent event) {
        Component component = event.getReference();
        if (component.getClass().getSimpleName().equalsIgnoreCase("Gmarker")) {
            alert("click on Gmarker!");
        } else if (component.getClass().getSimpleName().equalsIgnoreCase("Gpolygon")) {
            alert("click on Gpolygon!");
        } else if (component.getClass().getSimpleName().equalsIgnoreCase("Gpolyline")) {
            alert("click on Gpolyline!");
        }
    }

the above event recognizes only the component GMarker and do click on the area map appears the error: Not a child: <Gmaps mymap>

This link
http://books.zkoss.org/wiki/ZK_Component_Reference/Diagrams_and_Reports/Gmaps
says it recognizes Ginf, GPolyline,
or Gpolygon.

link publish delete flag offensive edit

answered 2011-03-03 05:41:05 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

updated 2011-03-03 05:45:49 +0800

My greatest need at the moment is to detect click or selection of different components within gmaps.
if you can help thank you very much

the link below has an example
http://www.bdcc.co.uk/Gmaps/BdccGmapBits.htm

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2011-03-02 07:18:11 +0800

Seen: 225 times

Last updated: Mar 03 '11

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