org.gwtopenmaps.openlayers.client.layer.Canvas Maven / Gradle / Ivy
package org.gwtopenmaps.openlayers.client.layer;
import org.gwtopenmaps.openlayers.client.LonLat;
import org.gwtopenmaps.openlayers.client.util.JSObject;
/**
*
* comment: no such layer in OpenLayers 2.x
*
* @author Erdem Gunay
*
*/
public class Canvas extends Layer {
protected Canvas(JSObject element) {
super(element);
}
public Canvas(String name) {
this(CanvasImpl.create(name));
}
public void drawLine(LonLat p1, LonLat p2) {
CanvasImpl.drawLine(getJSObject(), p1.getJSObject(), p2.getJSObject());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy