Package chunmap.view

Examples of chunmap.view.Map.render()


    Map map = new Map(width, height);
    map.getLayerCollection().setLayers(capbilities.getLayers());

    // getImage
    map.getView().setViewEnvelop(envelop);
    map.render();
    Image image = (Image)map.getPainter().getData();

    // toByteArray
    return ImageUtil.Image2ByteArray(image, formatName);
  }
View Full Code Here


    Map map;
    map = new Map(GoogleMapCode.tileSize, GoogleMapCode.tileSize);
    map.getLayerCollection().setLayers(layers);
   
    map.getView().setViewEnvelop(code.getEnvelope(tile));
    map.render();
    image = map.getPainter().getData();
   
    cache.save(image, name);
   
    return image;
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.