All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gwtopenmaps.openlayers.client.layer.Canvas Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
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