Examples of GLatLng


Examples of com.volantis.mcs.googlemaps.GLatLng

        } else if (!Double.isNaN(latitude)){
           
            double longitude = mapAttributes.getLongitude();

            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)
View Full Code Here

Examples of com.volantis.mcs.googlemaps.GLatLng

        String src = attr.getSrc();
        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(
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLng

        map.setPanControlEnabled(true);
        map.setDoubleClickZoomEnabled(true);

        // centre the map on the first object that has a location.
        for (ObjectAdapter adapter : adapterList) {
            GLatLng latLng = asGLatLng((Locatable)adapterList.get(0).getObject());
            if(latLng != null) {
                map.setCenter(latLng);
                break;
            }
        }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLng

        final ResourceReference imageResource = determineImageResource(adapter);
        final String urlFor = (String)urlFor(imageResource, new PageParameters());
        @SuppressWarnings("unused")
        final GIcon gicon = new GIcon(urlFor);
       
        GLatLng gLatLng = asGLatLng(locatable);
        if(gLatLng == null) {
            return null;
        }
        final GMarkerOptions markerOptions = new GMarkerOptions(
                map, gLatLng,
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLng

        return markerOptions;
    }

    private GLatLng asGLatLng(Locatable locatable) {
        final Location location = locatable.getLocation();
        return location!=null?new GLatLng(location.getLatitude(), location.getLongitude()):null;
    }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLng

        map.setPanControlEnabled(true);
        map.setDoubleClickZoomEnabled(true);

        // centre the map on the first object that has a location.
        for (ObjectAdapter adapter : adapterList) {
            GLatLng latLng = asGLatLng((Locatable)adapterList.get(0).getObject());
            if(latLng != null) {
                map.setCenter(latLng);
                break;
            }
        }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLng

        final ResourceReference imageResource = determineImageResource(adapter);
        final String urlFor = (String)urlFor(imageResource, new PageParameters());
        @SuppressWarnings("unused")
        final GIcon gicon = new GIcon(urlFor);
       
        GLatLng gLatLng = asGLatLng(locatable);
        if(gLatLng == null) {
            return null;
        }
        final GMarkerOptions markerOptions = new GMarkerOptions(
                map, gLatLng,
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLng

        return markerOptions;
    }

    private GLatLng asGLatLng(Locatable locatable) {
        final Location location = locatable.getLocation();
        return location!=null?new GLatLng(location.getLatitude(), location.getLongitude()):null;
    }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLng

    private final GMap map;

    public GGroundOverlayPage()
    {
        map = new GMap("map");
        map.setCenter(new GLatLng(40.740, -74.18));
        map.setZoom(12);

        // ground overlay

        GLatLngBounds boundaries = new GLatLngBounds(new GLatLng(40.716216, -74.213393), new GLatLng(40.765641, -74.139235));
        GGroundOverlay oldmap = new GGroundOverlay("http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg", boundaries);
        map.addOverlay(oldmap);
        add(map);
    }
View Full Code Here

Examples of org.wicketstuff.gmap.api.GLatLng

             * @see org.apache.wicket.ajax.AjaxEventBehavior#onEvent(org.apache.wicket.ajax.AjaxRequestTarget)
             */
            @Override
            protected void onEvent(AjaxRequestTarget target)
            {
                GInfoWindow tmpInfoWindow = new GInfoWindow(new GLatLng(37.5 * (0.9995 + Math.random() / 1000), -122.1 * (0.9995 + Math.random() / 1000)), "Opened via button");
                map.addOverlay(tmpInfoWindow);
                // IMPORTANT: you must have the InfoWindow already added to the map
                // before you can add any listeners
                GEventHandler closeClickHandler = new GEventHandler()
                {
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.