Example usage for com.google.gwt.maps.client MapPaneType MARKER_PANE

List of usage examples for com.google.gwt.maps.client MapPaneType MARKER_PANE

Introduction

In this page you can find the example usage for com.google.gwt.maps.client MapPaneType MARKER_PANE.

Prototype

MapPaneType MARKER_PANE

To view the source code for com.google.gwt.maps.client MapPaneType MARKER_PANE.

Click Source Link

Document

This pane contains the markers.

Usage

From source file:org.onebusaway.webapp.gwt.tripplanner_library.view.TinyInfoWindowMarker.java

License:Apache License

@Override
protected void initialize(MapWidget map) {

    _panel = new FlowPanel();
    _panel.addStyleName(_css.tinyInfoWindow());

    SpanPanel leftSpan = new SpanPanel();
    leftSpan.addStyleName(_css.tinyInfoWindowLeftPanel());
    leftSpan.add(_content);//from   www .java 2  s  .com
    _panel.add(leftSpan);

    SpanWidget rightSpan = new SpanWidget("");
    rightSpan.addStyleName(_css.tinyInfoWindowRightPanel());
    _panel.add(rightSpan);

    _map = map;
    _map.getPane(MapPaneType.MARKER_PANE).add(_panel);
}

From source file:org.onebusaway.webapp.gwt.tripplanner_library.view.TinyInfoWindowMarker.java

License:Apache License

@Override
protected void redraw(boolean force) {
    Point point = _map.convertLatLngToDivPixel(_point);
    int x = point.getX();
    int y = point.getY();
    _map.getPane(MapPaneType.MARKER_PANE).setWidgetPosition(_panel, x, y);
}

From source file:org.onebusaway.webapp.gwt.tripplanner_library.view.TinyInfoWindowMarker.java

License:Apache License

@Override
protected void remove() {
    _map.getPane(MapPaneType.MARKER_PANE).remove(_panel);
}

From source file:org.thechiselgroup.choosel.visualization_component.map.client.DefaultOverlay.java

License:Apache License

@Override
protected final void initialize(MapWidget map) {
    this.map = map;

    pane = map.getPane(MapPaneType.MARKER_PANE);
    pane.getElement().appendChild(element);

    updatePosition(map.convertLatLngToDivPixel(location));
}