Package org.wicketstuff.openlayers3.component

Examples of org.wicketstuff.openlayers3.component.MarkerPopover


                }

                // create server vector data source before the map
                if (layer.getSource() != null && layer.getSource() instanceof ServerVector) {

                    ServerVector vectorSource = (ServerVector) layer.getSource();
                    builder.append(renderServerVectorJs(vectorSource, layer));
                }

                // create vector data sources for clusters before the map
                if (layer.getSource() != null && layer.getSource() instanceof Cluster) {

                    Cluster source = (Cluster) layer.getSource();

                    // for the GeoJSON loader, render the data loading function
                    if(source.getSource() instanceof ServerVector) {

                        ServerVector vectorSource = (ServerVector) source.getSource();
                        builder.append(renderServerVectorJs(vectorSource, layer));
                    }
                }

                builder.append(layer.getJsId() + " = new " + layer.getJsType() + "(" + layer.renderJs() + ");\n");
View Full Code Here


                                // a new tile layer with the map of the world
                                new Tile("Global Imagery",

                                        // a new web map service tile layer
                                        new TileWms("http://maps.opengeo.org/geowebcache/service/wms",

                                                // options for the layer
                                                ImmutableMap.of("LAYERS", "bluemarble", "VERSION", "1.1.1")))),

                        // view for this map
View Full Code Here

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

                // create vector data sources before the map
                if (layer.getSource() != null && layer.getSource() instanceof VectorSource) {

                    VectorSource vectorSource = (VectorSource) layer.getSource();

                    if (vectorSource.getFeatures() != null) {
                        for (Feature feature : vectorSource.getFeatures()) {
                            builder.append("var " + feature.getJsId() + " = new " + feature.getJsType() + "("
                                    + feature.renderJs() + ");\n");
                        }
                    }
                }
View Full Code Here

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

                if (layer.getSource() != null && layer.getSource() instanceof VectorSource) {

                    VectorSource vectorSource = (VectorSource) layer.getSource();

                    if (vectorSource.getFeatures() != null) {
                        for (Feature feature : vectorSource.getFeatures()) {
                            builder.append(feature.renderAfterConstructorJs());
                        }
                    }
                }
View Full Code Here

                                        // 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"),
                                        new Projection("EPSG:3857", "degress", "nue")), style)),
View Full Code Here

                                        // our cluster data source
                                        new Cluster(40,

                                                // vector data source for calculating clusters
                                                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

        builder.append("var " + vectorSource.getJsId() + " = new " + vectorSource.getJsType() + "("
                + vectorSource.renderJs() + ");\n");

        if (vectorSource.getLoader() instanceof DefaultGeoJsonLoader) {
            DefaultGeoJsonLoader loader = (DefaultGeoJsonLoader) vectorSource.getLoader();

            if (layerDataLoadedMap.get(layer) != null) {

                // add our listener for the feature data loading
                loader.vectorFeatureDataLoadedListener(layerDataLoadedMap.get((Vector) layer));
            }

            if (layerLoadedMap.get(layer) != null) {

                // add our listener for the feature loading
                loader.vectorFeaturesLoadedListener(layerLoadedMap.get((Vector) layer));
            }
            builder.append(loader.renderBeforeConstructorJs() + ";\n");
        }

        return builder.toString();
    }
View Full Code Here

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

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

                Model.of("Miles' Office"),
                Model.of("<p>This is where Miles' labors away on his code</p>"),
                Model.of(longLat)));

        // style for map features
        Style style = new Style(new Icon("http://api.tiles.mapbox.com/mapbox.js/v2.0.1/images/marker-icon.png")
                .crossOrigin(CorsPolicy.ANONYMOUS));

        // create and add our marker
        map = new DefaultOpenLayersMap("map",
View Full Code Here

TOP

Related Classes of org.wicketstuff.openlayers3.component.MarkerPopover

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.