Package org.wicketstuff.openlayers3.api.style

Examples of org.wicketstuff.openlayers3.api.style.Fill


                                        // a new web map service tile layer
                                        new Osm()),

                                // add our vector layer with the data
                                vectorLayer = new Vector(new ServerVector(new GeoJsonFormat(),
                                        new DefaultGeoJsonLoader(
                                                "http://mhc-macris.net:8080/geoserver/MHC/ows?service=WFS"
                                                        + "&version=1.0.0&request=GetFeature&typeName=MHC:in_pts"
                                                        + "&outputFormat=json",
                                                "EPSG:3857"),
View Full Code Here


                                        // a OpenStreetMaps tile source
                                        new Osm()),

                                // add our vector layer for the clusters
                                cluster = new Vector(

                                        // our cluster data source
                                        new Cluster(40,

                                                // vector data source for calculating clusters
View Full Code Here

            for (Layer layer : map.getLayers()) {

                if (layer instanceof Vector) {

                    final Vector vectorLayer = (Vector) layer;

                    if(vectorLayer.getFeatureDataLoadedListeners() != null
                            && vectorLayer.getFeatureDataLoadedListeners().size() > 0) {

                        // add a behavior to be notified when new data is loaded
                        VectorFeatureDataLoadedListener vectorFeatureDataLoadedListener =
                                new VectorFeatureDataLoadedListener(vectorLayer) {

                                    @Override
                                    public void handleDataLoaded(AjaxRequestTarget target, JsonArray features) {
                                        vectorLayer.notifyFeatureDataLoadedListeners(target, features);
                                    }
                                };
                        add(vectorFeatureDataLoadedListener);

                        // map the layer to the data loaded handler
                        layerDataLoadedMap.put(layer, vectorFeatureDataLoadedListener);
                    }

                    if(vectorLayer.getFeaturesLoadedListeners() != null
                            && vectorLayer.getFeaturesLoadedListeners().size() > 0) {

                        // add a behavior to be notified when new features are loaded
                        VectorFeaturesLoadedListener vectorFeatureLoadedListener =
                                new VectorFeaturesLoadedListener(vectorLayer) {

                                    @Override
                                    public void handleDataLoaded(AjaxRequestTarget target) {
                                        vectorLayer.notifyFeaturesLoadedListeners(target);
                                    }
                                };
                        add(vectorFeatureLoadedListener);

                        // map the layer to the data loaded handler
View Full Code Here

                                // overlay with the popover
                                popoverPanel.getPopover(),

                                // overlay with our marker and popover
                                new Overlay(markerPopover,

                                        // position of the overlay
                                        longLat,

                                        // position of the overlay relative to the point
View Full Code Here

                        // list of overlays
                        Arrays.<Overlay>asList(

                                // overlay with our marker
                                new Overlay(marker,

                                        // position of this overlay
                                        new LongLat(-72.638429, 42.313229, "EPSG:4326")
                                                .transform(View.DEFAULT_PROJECTION),
View Full Code Here

                                // overlay with the popover
                                popoverPanel.getPopover(),

                                // overlay with our marker and popover
                                new Overlay(markerPopover,

                                        // position of the overlay
                                        longLat,

                                        // position of the overlay relative to the point
View Full Code Here

                                // overlay with the popover
                                popoverPanel.getPopover(),

                                // overlay with our marker and popover
                                new Overlay(markerPopover,

                                        // position of the overlay
                                        longLat,

                                        // position of the overlay relative to the point
View Full Code Here

    @Override
    protected void onInitialize() {
        super.onInitialize();
        add(behavior = new PopoverBehavior(titleModel, contentModel));
        popover = new Popover(this, getTitleModel(), getContentModel());
    }
View Full Code Here

                                        new DefaultGeoJsonLoader(
                                                "http://mhc-macris.net:8080/geoserver/MHC/ows?service=WFS"
                                                        + "&version=1.0.0&request=GetFeature&typeName=MHC:in_pts"
                                                        + "&outputFormat=json",
                                                "EPSG:3857"),
                                        new Projection("EPSG:3857", "degress", "nue")), style)),

                        // list of overlays
                        Arrays.<Overlay>asList(

                                // overlay with the popover
View Full Code Here

                                                                        + "&version=1.0.0&request=GetFeature"
                                                                        + "&typeName=MHC:in_pts&outputFormat=json",
                                                                "EPSG:3857"),

                                                        // projection for our data source
                                                        new Projection("EPSG:3857", "degrees", "nue"))),

                                        // style for our cluster layer
                                        new ClusterStyle(

                                                // the circle that we'll draw for clusters
View Full Code Here

TOP

Related Classes of org.wicketstuff.openlayers3.api.style.Fill

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.