Update wmts-hidpi, add nicer-api-docs
This commit is contained in:
33
nicer-api-docs/examples/mapguide-untiled.js
Normal file
33
nicer-api-docs/examples/mapguide-untiled.js
Normal file
@@ -0,0 +1,33 @@
|
||||
var mdf = 'Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition';
|
||||
var agentUrl =
|
||||
'http://data.mapguide.com/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous';
|
||||
var bounds = [
|
||||
-87.865114442365922,
|
||||
43.665065564837931,
|
||||
-87.595394059497067,
|
||||
43.823852564430069
|
||||
];
|
||||
var map = new ol.Map({
|
||||
layers: [
|
||||
new ol.layer.Image({
|
||||
source: new ol.source.MapGuide({
|
||||
projection: 'EPSG:4326',
|
||||
url: agentUrl,
|
||||
useOverlay: false,
|
||||
metersPerUnit: 111319.4908, //value returned from mapguide
|
||||
params: {
|
||||
MAPDEFINITION: mdf,
|
||||
FORMAT: 'PNG'
|
||||
},
|
||||
ratio: 2,
|
||||
extent: bounds
|
||||
})
|
||||
})
|
||||
],
|
||||
target: 'map',
|
||||
view: new ol.View2D({
|
||||
center: [-87.7302542509315, 43.744459064634],
|
||||
projection: 'EPSG:4326',
|
||||
zoom: 12
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user