Hot answers tagged

2

It's likely caused by the fact that the canvas renders a cached image instead of requesting a new one. This will cause the cache to be cleared. timer.timeout.connect(layer.triggerRepaint) To get a reference to your layer either create it from python or use the QgsMapLayerRegistry.


2

You can see a demo in action to illustrate. The thing to keep in mind are: load Proj4js library and the local EPSG code proj4js declaration from http://epsg.io website get the ol.proj.projection object and set it extent (for managing map resolution) var extent = ol.proj.transformExtent([-8.74, 49.81, 1.84, 60.9], 'EPSG:4326', 'EPSG:27700'); var ...


2

I usually use a function to create WMS Layers to avoid redundances. function Tile(options){ return new ol.layer.Tile({ name: options.name || 'Layer', visible: options.visible === false ? false : true, source: new ol.source.TileWMS({ crossOrigin: 'anonymous', url: options.url, params: { ...


2

The Adress is wrong, or the server not working... You get the same message when you put it into your browser but you should get the Capabilities document. Also the plain server is not responding if you open the link with the adress http://wms.lizardtech.com/lizardtech/iserv/ows? . There should be an answer there already, what means that something is broken. ...


2

You don't need to reproject a WMS layer, OpenLayers should make the request in the map projection for you automatically. The only time there might be an issue is if the WMS Server doesn't support the projection of your map, but checking the capabilities of your server shows that the layers are available in 3 CRS: <CRS>EPSG:25830</CRS> ...


1

The error was in my template variable syntax... And the letter "j" put me on its trail ! In the configuration, url: http://ecn.t2.tiles.virtualearth.net/tiles/a%(quadkey).jpeg?g=1&mkt=en-US is wrong and must be url: http://ecn.t2.tiles.virtualearth.net/tiles/a%(quadkey)s.jpeg?g=1&mkt=en-US Note the "s" character after the closing parenthesis - ...


1

Figured out the issue. The URL was wrong instead of it being http://localhost:8080/geoserver/cite/wms it should have been http://localhost:8080/geoserver/wms


1

The legend does not depend on the existence of any particular layer. The part that you are missing here is a getColor function. Copying the one from the tutorial in question: function getColor(d) { return d > 1000 ? '#800026' : d > 500 ? '#BD0026' : d > 200 ? '#E31A1C' : d > 100 ? '#FC4E2A' : d ...


1

Yes you can choose to add only one layer to ArcMap - unfortunately it still appears as a child of the Web Map Service but will at least tidy up the list of layers in the Table of Contents. You can do this in two ways: When Adding the Service When connected to the service in GIS Servers, drill down to the individual layer you want and select add. This ...


1

Try loading proj4 before OL3. I had issues until I was told to load them in that order.


1

latest versions of ol3 support client reprojection for both raster and vector data. even for tile layers. example here and here I think your fault is that you use the projection config on map and not on view. The rest of our code seems to be correct. Try this var view = new ol.View({ center: birmingham, projection:projection, zoom: 6 ...


1

What you want is not possible. The info or id tool you use to get a single value for the point you clicked on the map is sending a GetFeatureInfo Request for this coordinate to the server and the server sends back an xml/html file(which is in general optional, as well as the "elevation-awareness" of this wms from ESRI). But only for this single point. Even ...


1

You can use GrassGis which is installed alongside with Qgis. There is the tool r.in.wms which will do the work. It is in the background creating a textfile with the GetMap queries and replaces the extent for each tile. So you set it up with the correct region, the size of the tiles you want to have, the imagetype (depending what the wms offers) and thats ...


1

I know this question is really old now, but if anyone get the same problem as he got, maybe this could be helpful ! Your piece of code seems to be good in theory. As I used arcGIS/Leaflet in exactly the same way. But yea, problem could come from missing spatial reference (or maybe incorrect format (image/png or image/jpeg). For the spatial reference, here ...



Only top voted, non community-wiki answers of a minimum length are eligible