org.zkoss.openlayers.layer.OSM Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zkopenlayers Show documentation
Show all versions of zkopenlayers Show documentation
ZK wrapper for OpenLayers 2
The newest version!
/* OSM.java
{{IS_NOTE
Purpose:
Description:
History:
Jun 21, 2012 3:30:29 PM , Created by jumperchen
}}IS_NOTE
Copyright (C) 2012 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
}}IS_RIGHT
*/
package org.zkoss.openlayers.layer;
import java.util.Map;
import org.zkoss.openlayers.util.Function;
import static org.zkoss.openlayers.util.Helper.mergeMap;
import static org.zkoss.openlayers.util.Helper.pair;
/**
* @author jumperchen
*
*/
public class OSM extends XYZ {
public OSM() {
this(null, null, null);
}
public OSM(String name) {
this(name, null, null);
}
public OSM(String name, String url, Map options) {
super(name, url, options);
}
public OSM(Map options) {
this(null, null, options);
}
@Override
protected Function newNativeObject() {
return new Function(getNativeClass(),
getName(), getURL(),
mergeMap(getOptions(), pair("uuid", getUuid())));
}
@Override
protected String getNativeClass() {
return "OpenLayers.Layer.OSM";
}
}