[epoch]OL 3はWMSサービス展示地図を呼び出し、サービスはepochによって発表される.
1461 ワード
EPOCH WMS
var view;
var layers;
layers = [
new ol.layer.Image({
//extent: [73.44696044921875,3.408477306365967,135.08583068847656,53.557926177978516],
source: new ol.source.ImageWMS({
url: 'http://127.0.0.1:8060/gisserver/wmsserver/china',
params: {'LAYERS': ''}
})
})
];
view = new ol.View({
center: [100, 30],
zoom:20
});
var map = new ol.Map({
layers: layers,
target: 'map',
view:view
});