Revision history [back]

click to hide/show revision 1
initial version

answered 2012-10-19 19:56:04 +0800

andij62 gravatar image andij62

also the example of twiegand from this Link does not work! Is also an additional eventListener required?

<zk>
    <window id="win" height="100%">
        <script src="http://www.google.com/jsapi?key=Your Google Maps Key"></script>

        <gmaps id="gm" height="100%" width="100%" showSmallCtrl="true" lat="40" lng="-3" zoom="17" mapType="satellite" scrollWheelZoom="true" showTypeCtrl="true"></gmaps>

        <zscript>
            Gmarker gmarker = new Gmarker();
            gmarker.setLat(40);
            gmarker.setLng(-3);

            Popup popup = new Popup();
            win.appendChild(popup);
            Vlayout vlayout = new Vlayout();
            Label labelLine1 = new Label("Your Multi-line");
            Label labelLine2 = new Label("popup content goes here");
            vlayout.appendChild(labelLine1);
            vlayout.appendChild(labelLine2);
            popup.appendChild(vlayout);
            gmarker.setTooltip(popup);

            gm.appendChild(gmarker);
        </zscript>
    </window>
</zk>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More