wms ajab mingit jama.

Qgis pritsdib sellist juttu.

Response: <?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd";>

<ServiceExceptionReport version="1.1.1">

<ServiceException>Could not get any sources:

response is not an image: (&lt;!DOCTYPE html&gt;

&lt;html&gt;

&lt;head&gt;

&lt;title&gt;kaart.maakaart.ee&lt;/title&gt;

&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;

&lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"&gt;

&lt;link rel="stylesheet" href="dist/leaflet.css" /&gt;

&lt;link rel="stylesheet" href="dist/L.Control.Locate.css" /&gt;

&lt;link rel="stylesheet" href="dist/leaflet-search.css" /&gt;

&lt;link rel="stylesheet" href="dist/L.Control.Zoomslider.css" /&gt;

&lt;link rel="stylesheet" href="dist/Leaflet.EditInOSM.css" /&gt;

&lt;link rel="stylesheet" href="dist/Control.MiniMap.css" /&gt;

&lt;link rel="stylesheet" href="dist/Control.FullScreen.css" /&gt;

&lt;!--[if lte IE 8]&gt;

&lt;link rel="stylesheet" href="dist/leaflet.ie.css" /&gt;

&lt;link rel="stylesheet"/href="dist/L.Control.Zoomslider.ie.css" /&gt;

&lt;link rel="stylesheet" href="dist/L.Control.Locate.ie.css" /&gt;

&lt;![endif]--&gt;

&lt;script src="//cdn.leafletjs.com/leaflet-0.7.5/leaflet.js"&gt;&lt;/script&gt;

&lt;!--script src="dist/leaflet.js"&gt;&lt;/script--&gt;

&lt;script src="dist/leaflet.geocoding.js"&gt;&lt;/script&gt;

&lt;script src="dist/leaflet-hash.js"&gt;&lt;/script&gt;

&lt;script src="dist/L.Control.Locate.js"&gt;&lt;/script&gt;

&lt;script src="dist/leaflet-search.js"&gt;&lt;/script&gt;

&lt;script src="dist/L.Control.Zoomslider.js" &gt;&lt;/script&gt;

&lt;script src="dist/Leaflet.EditInOSM.js" &gt;&lt;/script&gt;

&lt;script src="dist/Control.MiniMap.js"&gt;&lt;/script&gt;

&lt;script src="dist/Control.FullScreen.js"&gt;&lt;/script&gt;

&lt;script src="//cdn.maptiks.com/maptiks-leaflet.min.js"&gt;&lt;/script&gt;

&lt;script&gt;maptiks.trackcode='40552750-296c-489e-9521-981bda93597f';&lt;/script&gt;

&lt;style&gt;

body {

padding: 0;

margin: 0;

}

html, body, #map {

height: 100%;

}

&lt;/style&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;div id="map"&gt;&lt;/div&gt;

&lt;script&gt;

var osm = L.tileLayer('/osm/tiles/1.0.0/osm_EPSG900913/{z}/{x}/{y}.png?origin=nw', {

attribution: 'Aluskaart &amp;copy; &lt;a href="http://osm.org/copyright"&gt;OpenStreetMap&lt;/a&gt;'

});

var osm_original = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {

attribution: 'Aluskaart &amp;copy; &lt;a href="http://osm.org/copyright"&gt;OpenStreetMap&lt;/a&gt;'

});

var opencyclemap = L.tileLayer('http://{s}.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png', {

attribution: 'Aluskaart &amp;copy; &lt;a href="http://openstreetmap.org"&gt;OpenStreetMap&lt;/a&gt;, &lt;a href="http://www.opencyclemap.org"&gt;OpenCycleMap&lt;/a&gt;'

});

var ortofoto = L.tileLayer('/orto/{z}/{x}/{y}.jpeg', {

minZoom: 14,

attribution: '&amp;copy; Maa-amet'

});

var pohikaart = L.tileLayer.wms("/wms/alus-geo", {

layers: 'pohi_vr2',

format: 'application/vnd.ogc.se_inimage',

transparent: true,

attribution: '&amp;copy; Maa-amet, andmed &lt;a href="http://kaart.maakaart.ee/"&gt;maakaart.ee&lt;/a&gt;'

});

var topo50 = L.tileLayer.wms("/service", {

layers: 'topo50',

format: 'image/png',

transparent: true,

attribution: 'Andmekiht &lt;a href="http://kaart.maakaart.ee/"&gt;maakaart.ee&lt;/a&gt;',

opacity: 0.5

});

var map = new L.Map('map', {

zoom: 7,

center: [58.651, 24.609],

layers: [osm],

mapConfig: { zoomsliderControl: true, zoomControl: false },

editInOSMControlOptions: { editors: [IDortofoto = new L.Control.EditInOSM.Editors.Id({

url: "http://openstreetmap.us/iD/release/#editor=id&amp;background=custom:http://kaart.maakaart.ee/orto/{z}/{x}/{y}.jpeg&amp;map=";

})]}

});

var baseLayers = {

"OpenStreetMap (eesti k.)": osm,

"OpenStreetMap (originaal)": osm_original,

"Rattateede kaart": opencyclemap,

"Maa-ameti aerofoto": ortofoto

};

var overlays = {

"NL ajaloolised topokaardid": topo50

};

L.control.layers(baseLayers, overlays).addTo(map);

var hash = new L.Hash(map);

map.addControl( new L.control.locate({

follow: true,

stopFollowingOnDrag: true

}));

map.addControl( new L.Control.Search({

url: 'http://nominatim.openstreetmap.org/search?format=json&amp;q={s}',

jsonpParam: 'json_callback',

propertyName: 'display_name',

propertyLoc: ['lat','lon'],

markerLocation: true,

autoType: false,

autoCollapse: true,

minLength: 2,

zoom:18

}));

var fullScreen = new L.Control.FullScreen();

map.addControl(fullScreen);

var osm2 = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {

minZoom: 0,

maxZoom: 18,

attribution: 'Aluskaart &amp;copy; &lt;a href="http://osm.org/copyright"&gt;OpenStreetMap&lt;/a&gt;'

});

var miniMap = new L.Control.MiniMap(osm2, {

toggleDisplay: true

}).addTo(map);

&lt;/script&gt;

&lt;/body&gt;

&lt;/html&gt;

)</ServiceException>

</ServiceExceptionReport>




_______________________________________________
Talk-ee mailing list
Talk-ee@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ee

Reply via email to