Package org.wicketstuff.openlayers3.component

Examples of org.wicketstuff.openlayers3.component.MarkerPopover


                Model.of("Miles' Office"),
                Model.of("<p>This is where Miles' labors away on his code</p>"),
                Model.of(longLat)));

        // style for map features
        Style style = new Style(new Icon("http://api.tiles.mapbox.com/mapbox.js/v2.0.1/images/marker-icon.png")
                .crossOrigin(CorsPolicy.ANONYMOUS));

        // create and add our marker
        map = new DefaultOpenLayersMap("map",
View Full Code Here


        LongLat longLat = new LongLat(-72.638429, 42.313229, "EPSG:4326").transform(View.DEFAULT_PROJECTION);

        // add a marker that will update the content of the popover, move the popover and then make it visible when
        // the marker is clicked
        add(markerPopover = new MarkerPopover("marker",
                Model.of(new Color("#8b0000")),
                popoverPanel,
                Model.of("Miles' Office"),
                Model.of("<p>This is where Miles' labors away on his code</p>"),
                Model.of(longLat)));
View Full Code Here

    @Override
    protected void onInitialize() {
        super.onInitialize();

        // create and add our marker
        add(marker = new Marker("marker", Model.of(new Color("#4169E1"))));

        // create and add our marker
        add(new DefaultOpenLayersMap("map",

                // create the model for our map
View Full Code Here

        LongLat longLat = new LongLat(-72.638429, 42.313229, "EPSG:4326").transform(View.DEFAULT_PROJECTION);

        // add a marker that will update the content of the popover, move the popover and then make it visible when
        // the marker is clicked
        add(markerPopover = new MarkerPopover("marker",
                Model.of(new Color("#8b0000")),
                popoverPanel,
                Model.of("Miles' Office"),
                Model.of("<p>This is where Miles' labors away on his code</p>"),
                Model.of(longLat)));
View Full Code Here

        LongLat longLat = new LongLat(-72.638429, 42.313229, "EPSG:4326").transform(View.DEFAULT_PROJECTION);

        // add a marker that will update the content of the popover, move the popover and then make it visible when
        // the marker is clicked
        add(markerPopover = new MarkerPopover("marker",
                Model.of(new Color("#4169E1")),
                popoverPanel,
                Model.of("Miles' Office"),
                Model.of("<p>This is where Miles' labors away on his code</p>"),
                Model.of(longLat)));
View Full Code Here

     *
     * @param color
     *         String with the hexadecimal color code for this fill
     */
    public Fill(String color) {
        this(new Color(color));
    }
View Full Code Here

     *
     * @param color
     *         String with the hexadecimal color code for this fill
     */
    public void setColor(String color) {
        setColor(new Color(color));
    }
View Full Code Here

     * Creates a new instance.
     *
     * @param color Color for this instance
     */
    public Stroke(String color) {
        this(new Color(color));
    }
View Full Code Here

                                // zoom level for the view
                                16))));

        // add a handler for feature clicks
        map.add(new ClickFeatureHandler("EPSG:4326") {

            @Override
            public void handleClick(AjaxRequestTarget target, String featureId, LongLat longLat,
                                    JsonObject properties) {
View Full Code Here

                                longLat,

                                // zoom level for the view
                                16))));

        map.add(new ClickFeatureHandler("EPSG:4326") {

            @Override
            public void handleClick(AjaxRequestTarget target, String featureId, LongLat longLat, JsonObject properties) {

                // get the coordinates for the feature
View Full Code Here

TOP

Related Classes of org.wicketstuff.openlayers3.component.MarkerPopover

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.