Examples of PointLayer


Examples of com.codename1.maps.layers.PointLayer

        String name = marker.getAsString("name");
        String desc = marker.getAsString("description");
        if (desc != null) {
          descriptions.put(name, desc);
        }
        PointLayer p = new PointLayer(coords, name, null);
        p.setDisplayName(true);
        String style = marker.getAsString("styleUrl");
        if (style == null) {
          style = "default";
        }
        setMarkerIcon(p, kml, style);
        addPoint(p);
      }
    }
    addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                PointLayer p = (PointLayer) evt.getSource();
                System.out.println("pressed " + p);
                String name = p.getName();
                final Dialog d = new Dialog(name);
                d.setLayout(new BorderLayout());
                WebBrowser wb = new WebBrowser();
                wb.setPage(getDescription(name), "http://localhost");
                d.addComponent(BorderLayout.CENTER, wb);
View Full Code Here

Examples of com.codename1.maps.layers.PointLayer

        String name = marker.getAsString("name");
        String desc = marker.getAsString("description");
        if (desc != null) {
          descriptions.put(name, desc);
        }
        PointLayer p = new PointLayer(coords, name, null);
        p.setDisplayName(true);
        String style = marker.getAsString("styleUrl");
        if (style == null) {
          style = "default";
        }
        setMarkerIcon(p, kml, style);
        addPoint(p);
      }
    }
    addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                PointLayer p = (PointLayer) evt.getSource();
                System.out.println("pressed " + p);
                String name = p.getName();
                final Dialog d = new Dialog(name);
                d.setLayout(new BorderLayout());
                WebBrowser wb = new WebBrowser();
                wb.setPage(getDescription(name), "http://localhost");
                d.addComponent(BorderLayout.CENTER, wb);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.