Package com.volantis.mcs.googlemaps

Examples of com.volantis.mcs.googlemaps.GImage


            GoogleCalculator calc = GoogleCalculatorExtended.getInstance();
            GLatLng gLatLng = new GLatLng(latitude, longitude);
            GPoint gPoint = calc.fromLatLngToPixel(gLatLng,
                    GoogleCalculator.INITIAL_ZOOM);
            GImage gImage = calc.fromGPixelToGImage(gPoint);
            initialLocation.append(", longitude: ").append(longitude)
                    .append(", latitude: ").append(latitude)
                    .append(", initialLocation: ")
                    .append(OperationHelper.getInstance()
                    .getMapImagesList(gImage.getImgX(), gImage.getImgY(),
                            GoogleCalculator.INITIAL_ZOOM,
                            GoogleCalculator.MAIN_IMAGES));
        }
        return initialLocation;
    }
View Full Code Here


        int minZoom = attr.getMinZoom();
        int maxZoom = attr.getMaxZoom();
       
        GoogleCalculator calc = GoogleCalculatorExtended.getInstance();
        GPoint gPoint = calc.fromLatLngToPixel(new GLatLng(lat, lng), 0);
        GImage gImage = calc.fromGPixelToGImage(gPoint);
       
        StringBuffer textBuffer = new StringBuffer();
       
        textBuffer.append(
                createJavaScriptWidgetRegistrationOpening(
                        attr.getId()))
                .append("new Widget.MapLocationMarker(")
                .append(createJavaScriptString(attr.getId()))
                .append(", {")
                .append("lng: ").append(gImage.getImgX()).append(", ")
                .append("lat: ").append(gImage.getImgY()).append(", ")
                .append("src: ").append(createJavaScriptString(src)).append(", ")
                .append("minZoom: ").append(minZoom).append(", ")
                .append("maxZoom: ").append(maxZoom)
                .append("})")
                .append(createJavaScriptWidgetRegistrationClosure());
View Full Code Here

TOP

Related Classes of com.volantis.mcs.googlemaps.GImage

Copyright © 2018 www.massapicom. 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.