Package org.zkoss.openlayers.layer

Examples of org.zkoss.openlayers.layer.Bing


  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    String apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";

    map.addLayer(new Bing(toMap(pair("key", apiKey),
        pair("type", "Road"),
        // custom metadata parameter to request the new map style - only
        // useful
        // before May 1st, 2011
        pair("metadataParams", toMap(pair("mapVersion", "v1"))))));

    map.addLayer(new Bing(toMap(pair("key", apiKey),
        pair("type", "Aerial"))));
    map.addLayer(new Bing(toMap(pair("key", apiKey),
        pair("type", "AerialWithLabels"),
        pair("name", "Bing Aerial With Labels"))));

    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(-71.147, 42.472).transform(new Projection(
View Full Code Here


        pair("maxExtent", new Bounds(-20037508, -20037508, 20037508,
            20037508)));
    map.setOptions(options);
   
    // OpenLayers.Layer.MultiMap is deprecated, use Bing instead.
    Layer ve = new Bing(toMap(pair("key", apiKey),
        pair("type", "Road"),
        // custom metadata parameter to request the new map style - only
        // useful
        // before May 1st, 2011
        pair("metadataParams", toMap(pair("mapVersion", "v1"))),
View Full Code Here

TOP

Related Classes of org.zkoss.openlayers.layer.Bing

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.