Package org.geotools.map

Examples of org.geotools.map.FeatureLayer


        map.setMapHeight(mapHeight);

        map.setTransparent(false);

        Style basicStyle = getTestStyle("CollectionSample.sld");
        map.addLayer(new FeatureLayer(fs, basicStyle));

        EncodeHTMLImageMap result = mapProducer.produceMap(map);
        assertTestResult("CollectionSample", result);

    }
View Full Code Here


        map.setMapHeight(mapHeight);

        map.setTransparent(false);

        Style basicStyle = getTestStyle("NamedPlaces.sld");
        map.addLayer(new FeatureLayer(fs, basicStyle));

        EncodeHTMLImageMap result = mapProducer.produceMap(map);
        assertTestResult("NoCoords", result);
    }
View Full Code Here

        map.getViewport().setBounds(env);
        map.setMapWidth(mapWidth);
        map.setMapHeight(mapHeight);
        map.setTransparent(false);
        Style basicStyle = getTestStyle(String.format("%s.sld", s));
        map.addLayer(new FeatureLayer(fs, basicStyle));
   
        EncodeHTMLImageMap result = mapProducer.produceMap(map);
        assertTestResult(s, result);
    }
View Full Code Here

        }

        informationLabel.setText("Please, set Start point first.");

        Style style = SLD.createSimpleStyle(simpleFeatureSource.getSchema(), Color.GRAY);
        Layer layer = new FeatureLayer(simpleFeatureSource, style);
        map.addLayer(layer);

        JMapPane mapPane = new JMapPane(map);
        mapPane.setBackground(Color.WHITE);
        mapPane.setBorder(BorderFactory.createLineBorder(Color.BLACK));
View Full Code Here

        FeatureSource<SimpleFeatureType, SimpleFeature> routeSource;
        try {
            routeSource = routeCalculator.getRouteFeatureSource();
            Style style = SLD.createLineStyle(Color.RED, 3);

            Layer layer = new FeatureLayer(routeSource, style);
            map.addLayer(layer);

            Logger.i("Draw route");
            informationLabel.setText("Route has been drawn");
            JOptionPane.showMessageDialog(MainView.this, "Route has been drawn");
View Full Code Here

        SimpleFeature feature = builder.buildFeature(null);

        memoryFeatureCollection.add(feature);
        Style style = SLD.createPointStyle("Circle", Color.RED, Color.GREEN, 1, 10);

        Layer layer = new FeatureLayer(memoryFeatureCollection, style);
        map.addLayer(layer);
    }
View Full Code Here

TOP

Related Classes of org.geotools.map.FeatureLayer

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.