Package org.mapfish.print.map.geotools

Examples of org.mapfish.print.map.geotools.AbstractFeatureSourceLayer


        return newBounds;
    }

    private boolean renderAsSvg(final MapLayer layer) {
        if (layer instanceof AbstractFeatureSourceLayer) {
            AbstractFeatureSourceLayer featureLayer = (AbstractFeatureSourceLayer) layer;
            return featureLayer.shouldRenderAsSvg();
        }
        return false;
    }
View Full Code Here


        PJsonObject requestData = parseJSONObjectFromFile(SetStyleProcessorTest.class, BASE_DIR + "basic/request.json");
        Values values = new Values(requestData, template, parser, this.folder.getRoot(), this.httpClientFactory, new File("."));
        forkJoinPool.invoke(template.getProcessorGraph().createTask(values));

        final MapAttribute.MapAttributeValues map = values.getObject("mapDef", MapAttribute.MapAttributeValues.class);
        final AbstractFeatureSourceLayer layer = (AbstractFeatureSourceLayer) map.getLayers().get(0);
        final MapfishMapContext mapContext = AbstractMapfishSpringTest.createTestMapContext();
        assertEquals("Default Line",
                layer.getLayers(httpClientFactory, mapContext, true).get(0).getStyle().getDescription().getTitle().toString());
    }
View Full Code Here

TOP

Related Classes of org.mapfish.print.map.geotools.AbstractFeatureSourceLayer

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.