Package org.wicketstuff.openlayers.api

Examples of org.wicketstuff.openlayers.api.SphericalMercatorLonLat


  public MapWithMarkersPage(final PageParameters parameters)
  {

    OpenLayersMap openLayersMap = new OpenLayersMap("map", true);

    Marker marker = new Marker(new SphericalMercatorLonLat(50, 50));
    openLayersMap.addOverlay(marker);

    marker = new Marker(new SphericalMercatorLonLat(100, 50));
    openLayersMap.addOverlay(marker);

    add(openLayersMap);
  }
View Full Code Here


    layers.add(layer);
    HashMap<String, String> mapOptions = new HashMap<String, String>();
    Bounds boundsExtend = new Bounds(new LonLat(-20037508.34,-20037508.34), new LonLat(20037508.34,20037508.34));
    mapOptions.put("maxExtent", boundsExtend.getJSconstructor());
    OpenLayersMap map = new OpenLayersMap("map", true, layers, mapOptions);
    map.setCenter(new SphericalMercatorLonLat(10.2, 48.9), 13);
    add(map);
  }
View Full Code Here

  {

    OpenLayersMap openLayersMap = new OpenLayersMap("map", true);
    add(openLayersMap);

    final Marker marker = new Marker(new SphericalMercatorLonLat(50, 50), new PopupPanel("Hello Marker 1"));
    openLayersMap.addOverlay(marker);

    openLayersMap.add(new DrawListenerBehavior()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

  public MapWithMarkersAndPopupsPage(final PageParameters parameters)
  {

    OpenLayersMap openLayersMap = new OpenLayersMap("map", true);

    Marker marker = new Marker(new SphericalMercatorLonLat(50, 50), new PopupPanel("Hello Marker 1"));
    openLayersMap.addOverlay(marker);

    marker = new Marker(new SphericalMercatorLonLat(100, 50), new PopupPanel("Hello Marker 2"));
    openLayersMap.addOverlay(marker);

    add(openLayersMap);
  }
View Full Code Here

  public MapWithMarkersAndPopupsInteractionPage(final PageParameters parameters)
  {

    OpenLayersMap openLayersMap = new OpenLayersMap("map", true);
    add(openLayersMap);
    Marker marker = new Marker(new SphericalMercatorLonLat(50, 50), new PopupPanel("Hello Marker 1"));
    openLayersMap.addOverlay(marker);

    WebMarkupContainer popupClicker = new WebMarkupContainer("openPop1");

    popupClicker.add(new PopupMarkerInfoAttributeAppender("onClick", ";", marker, openLayersMap));

    add(popupClicker);

    marker = new Marker(new SphericalMercatorLonLat(100, 50), new PopupPanel("Hello Marker 2"));
    openLayersMap.addOverlay(marker);
    popupClicker = new WebMarkupContainer("openPop2");

    popupClicker.add(new PopupMarkerInfoAttributeAppender("onClick", ";", marker, openLayersMap));
View Full Code Here

TOP

Related Classes of org.wicketstuff.openlayers.api.SphericalMercatorLonLat

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.