📄 openlayersmapproducerfactory.java
字号:
/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
* This code is licensed under the GPL 2.0 license, availible at the root
* application directory.
*/
package org.vfny.geoserver.wms.responses.map.openlayers;
import org.vfny.geoserver.global.WMS;
import org.vfny.geoserver.wms.GetMapProducer;
import org.vfny.geoserver.wms.GetMapProducerFactorySpi;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
public class OpenLayersMapProducerFactory implements GetMapProducerFactorySpi {
public boolean canProduce(String mapFormat) {
return getSupportedFormats().contains(mapFormat) || "openlayers".equals(mapFormat);
}
public GetMapProducer createMapProducer(String mapFormat, WMS wms)
throws IllegalArgumentException {
return new OpenLayersMapProducer(wms);
}
public String getName() {
return "OpenLayers Map";
}
public Set getSupportedFormats() {
return Collections.singleton("application/openlayers");
}
public boolean isAvailable() {
return true;
}
public Map getImplementationHints() {
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -