Revision history [back]

click to hide/show revision 1
initial version

asked 2012-10-19 10:41:57 +0800

andij62 gravatar image andij62

Gmaps - Tooltip does not work

Hi all,

i use zk 6.5 and i will set a tooltip to gmarker and gpoly but it does not work. What am I doing wrong?

here is my code:

<zk>
<window id="mapWin" height="100%" width="100%" apply="map.MapCtrl">
    <script type="text/javascript" content="zk.googleAPIkey='myKey'"></script>
    <gmaps id="map" width="100%" height="100%" ></gmaps>
</window>
</zk>






    public void onCreate() throws Exception {
        map.panTo(50.752213, 10.437012);
        map.setZoom(6);

        Gmarker gmark = new Gmarker();
        gmark.setParent(map);
        gmark.setLat(47.698710);
        gmark.setLng(10.3276800);
        gmark.setTooltiptext("This is a tooltip for gmarker");

        Gpolygon gpoly = new Gpolygon();
        gpoly.setParent(map);
            gpoly.addPoint(47.0,10.0,3);
            gpoly.addPoint(47.0,10.5,3);
            gpoly.addPoint(47.5,10.5,3);
            gpoly.addPoint(47.5,10.0,3);
            gpoly.addPoint(47.0,10.0,3);
            gpoly.setTooltiptext("This is a tooltip for gpoly");
    }

Regards Andi

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