Tag Info

New answers tagged

0

Try to invert. The layer must be declared before the map. var layer = new ol.layer.Tile({ source: new ol.source.TileWMS({ preload: Infinity, url: 'http://ide.cime.es/menorca/wms/base_referencia/', params:{ 'LAYERS':"RE007RUS_municipis", 'TILED':true } }) }); var map = new ol.Map({ target:'map', ...


0

You can use a framework on top of Mapserver to enable WMS/OWS authentication. Here is a list obtained from a post to the mapserver-users mailing list. Mapbender - been around a long long time and has a wonderful amount of OWS functionality Geoprisma secureOWS GeoShield If you ever decide to use Geoserver, take a look at the AuthKey module.


1

i faced somehow the same problem. For me that worked. instead of EPSG:4326 in my project i used EPSG:28993. mapOptions = {projection:"EPSG:900913",displayProjection: new OpenLayers.Projection("EPSG:4326")}; map = new OpenLayers.Map(mapOptions); googleBaseMap = new OpenLayers.Layer.Google("Google Satellite", {'type' : google.maps.MapTypeId.HYBRID}); ...


2

If you are hosting your map server, It simply depends of your WMS server deployment and sofware but it's not set by default. For MapServer, it can be deployed with Apache, Lighthttpd, or Nginx. For GeoServer, you should avoid the default Jetty (version 6 too old, need to hack to set proper CORS headers) but use instead Jetty 7, TomCat or JBoss. It's also ...


0

When I first read your title, I thought you meant can two (or more) WMS share (that is use) the same shapefile to create multiple layers and services; the answer to that question is YES. I now read your question as meaning can a WMS provide to the user in a client (whether web based like some OpenLayers based page, or on the desktop like QGIS) a shapefile ...


1

By definition, WMS is a raster. Wikipedia has an overview and OGC has several versions of the specification (website appears to be down as of 13 May 2015). This is often a raster image of a vector datasource like a shapefile. WMS can support things like GetFeatureInfo which allows you to query attributes of the underlying vector data. If you want to ...


0

The bit of code from Javi was helpful. I just had to change a few bits in order to make this work with OpenLayers 3. cartodb.Tiles.getTiles({ type: 'cartodb', user_name: 'dbauszus', sublayers: [{ sql: 'SELECT * FROM playa_test', cartocss: '#playa_test{polygon-fill: #FF6600; polygon-opacity: 0; line-color: #F11810; ...


1

Figured it out! The following SLD uses a rendering transformation to call "gs:Clip", which clips vector features to a bounding geometry. The result is then rasterized by GeoServer's WMS. <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor version="1.0.0" xmlns:ogc="http://www.opengis.net/ows" ...


0

There aren't any methods to bind feature requests to a button click. You should bind the whole layer construction to the button, if you wouldn't like to request the features on initialization. You should also check if the layer has been initialized in order to avoid memory leaks. var mylayer; button.onclick = function() { if (!(mylayer instanceof ...



Top 50 recent answers are included