Rename ol.source.SingleImageWMS to ol.source.ImageWMS
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<p id="shortdesc">Example of two single image WMS layers.</p>
|
||||
<div id="docs">
|
||||
<p>Pixelmap 1:1'000'000 with National Parks overlay using the projection EPSG:21781.</p>
|
||||
<p>See the <a href="wms-single-image-custom-proj.js" target="_blank">wms-single-image-custom-proj.js source</a> to see how this is done.</p>
|
||||
<p>See the <a href="wms-image-custom-proj.js" target="_blank">wms-image-custom-proj.js source</a> to see how this is done.</p>
|
||||
</div>
|
||||
<div id="tags">wms, single image, projection</div>
|
||||
</div>
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/proj4js/1.1.0/proj4js-compressed.js" type="text/javascript"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/proj4js/1.1.0/defs/EPSG21781.js" type="text/javascript"></script>
|
||||
<script src="loader.js?id=wms-single-image-custom-proj" type="text/javascript"></script>
|
||||
<script src="loader.js?id=wms-image-custom-proj" type="text/javascript"></script>
|
||||
<script src="../resources/social-links.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
@@ -4,7 +4,7 @@ goog.require('ol.RendererHints');
|
||||
goog.require('ol.View2D');
|
||||
goog.require('ol.layer.Image');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.SingleImageWMS');
|
||||
goog.require('ol.source.ImageWMS');
|
||||
|
||||
|
||||
var projection = ol.proj.configureProj4jsProjection({
|
||||
@@ -15,7 +15,7 @@ var projection = ol.proj.configureProj4jsProjection({
|
||||
var extent = [420000, 900000, 30000, 350000];
|
||||
var layers = [
|
||||
new ol.layer.Image({
|
||||
source: new ol.source.SingleImageWMS({
|
||||
source: new ol.source.ImageWMS({
|
||||
url: 'http://wms.geo.admin.ch/',
|
||||
crossOrigin: 'anonymous',
|
||||
attributions: [new ol.Attribution({
|
||||
@@ -32,7 +32,7 @@ var layers = [
|
||||
})
|
||||
}),
|
||||
new ol.layer.Image({
|
||||
source: new ol.source.SingleImageWMS({
|
||||
source: new ol.source.ImageWMS({
|
||||
url: 'http://wms.geo.admin.ch/',
|
||||
crossOrigin: 'anonymous',
|
||||
attributions: [new ol.Attribution({
|
||||
@@ -40,7 +40,7 @@
|
||||
<h4 id="title">Single image WMS example</h4>
|
||||
<p id="shortdesc">Example of a single image WMS layer.</p>
|
||||
<div id="docs">
|
||||
<p>See the <a href="wms-single-image.js" target="_blank">wms-single-image.js source</a> to see how this is done.</p>
|
||||
<p>See the <a href="wms-image.js" target="_blank">wms-image.js source</a> to see how this is done.</p>
|
||||
</div>
|
||||
<div id="tags">wms, image</div>
|
||||
</div>
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="loader.js?id=wms-single-image" type="text/javascript"></script>
|
||||
<script src="loader.js?id=wms-image" type="text/javascript"></script>
|
||||
<script src="../resources/social-links.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
@@ -3,8 +3,8 @@ goog.require('ol.RendererHint');
|
||||
goog.require('ol.View2D');
|
||||
goog.require('ol.layer.Image');
|
||||
goog.require('ol.layer.Tile');
|
||||
goog.require('ol.source.ImageWMS');
|
||||
goog.require('ol.source.MapQuestOpenAerial');
|
||||
goog.require('ol.source.SingleImageWMS');
|
||||
|
||||
|
||||
var layers = [
|
||||
@@ -12,7 +12,7 @@ var layers = [
|
||||
source: new ol.source.MapQuestOpenAerial()
|
||||
}),
|
||||
new ol.layer.Image({
|
||||
source: new ol.source.SingleImageWMS({
|
||||
source: new ol.source.ImageWMS({
|
||||
url: 'http://demo.opengeo.org/geoserver/wms',
|
||||
params: {'LAYERS': 'topp:states'},
|
||||
extent: [-13884991, -7455066, 2870341, 6338219]
|
||||
@@ -6,7 +6,7 @@ goog.require('ol.RendererHints');
|
||||
goog.require('ol.View2D');
|
||||
goog.require('ol.layer.Image');
|
||||
goog.require('ol.layer.Tile');
|
||||
goog.require('ol.source.SingleImageWMS');
|
||||
goog.require('ol.source.ImageWMS');
|
||||
goog.require('ol.source.TileWMS');
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ var layers = [
|
||||
})
|
||||
}),
|
||||
new ol.layer.Image({
|
||||
source: new ol.source.SingleImageWMS({
|
||||
source: new ol.source.ImageWMS({
|
||||
attributions: [new ol.Attribution({
|
||||
html: '© ' +
|
||||
'<a href="http://www.geo.admin.ch/internet/geoportal/' +
|
||||
|
||||
Reference in New Issue
Block a user