
org.zkoss.openlayers.layer.WMTS 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!
/* WMTS.java
{{IS_NOTE
Purpose:
Description:
History:
Jun 21, 2012 3:38:55 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.HashMap;
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 WMTS extends Layer {
public WMTS(Map options) {
super(null, options);
}
@Override
protected String getNativeClass() {
return "OpenLayers.Layer.WMTS";
}
public void mergeNewParams(Map params) {
if (_options == null)
_options = new HashMap();
_options.putAll(params);
clientUpdate("mergeNewParams", params);
}
@Override
protected Function newNativeObject() {
return new Function(getNativeClass(), mergeMap(getOptions(),
pair("uuid", getUuid())));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy