Package net.sourceforge.gpstools.utils

Examples of net.sourceforge.gpstools.utils.GpsFormat.asLatLon()


                mapjs.append("), {clickable: true, title: \"");
                mapjs.append(name).append("\"}, \"").append(link)
                        .append("\"));");
            } else {
                mapjs.append("map.addOverlay(createMarker(new GLatLng(");
                mapjs.append(format.asLatLon(wpt.getLat(), wpt.getLon()));
                mapjs.append("), {clickable: false, title: \"");
                mapjs.append(name).append("\"}));\n");
            }
        }
    }
View Full Code Here


            Appendable mapjs) throws IOException {
        GpsFormat format = GpsFormat.getInstance();
        mapjs.append("points = [];\n");
        for (Trkpt pt : pts) {
            mapjs.append("points.push(new GLatLng(");
            mapjs.append(format.asLatLon(pt.getLat(), pt.getLon()));
            mapjs.append("));\n");
        }
        mapjs.append("map.addOverlay(new GPolyline(points, \"");
        mapjs.append(color).append("\", 2));\n");
    }
View Full Code Here

        mapjs.append("map.setZoom(\n");
        mapjs.append("    map.getBoundsZoomLevel(\n");
        mapjs.append("        new GLatLngBounds(\n");
        mapjs.append("            new GLatLng(");
        mapjs.append(
                format.asLatLon(bd.x - bd.width * padding, bd.y - bd.height
                        * padding)).append("),\n");
        mapjs.append("            new GLatLng(");
        mapjs.append(format.asLatLon(bd.x + bd.width * (1.0f + padding), bd.y
                + bd.height * (1.0f + padding)));
        mapjs.append(")\n");
View Full Code Here

        mapjs.append("            new GLatLng(");
        mapjs.append(
                format.asLatLon(bd.x - bd.width * padding, bd.y - bd.height
                        * padding)).append("),\n");
        mapjs.append("            new GLatLng(");
        mapjs.append(format.asLatLon(bd.x + bd.width * (1.0f + padding), bd.y
                + bd.height * (1.0f + padding)));
        mapjs.append(")\n");
        mapjs.append("        )\n");
        mapjs.append("    )\n");
        mapjs.append(");\n");
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.