Tag Info

New answers tagged

1

This is the solution: <!-- mapserver template --> [metadata_variable_name] = [item name="value_0" precision="1"] [metadata_unit]<br>


0

Here is the solution, found myself, and not obvious at all in the documentation: add a OUTLINECOLOR to the LABEL tags! CLASS NAME "myLayer" EXPRESSION ([code] = 1) STYLE SYMBOL "STD_circle" COLOR 0 255 0 END LABEL FONT "vera" TYPE TRUETYPE SIZE 3 COLOR 0 0 0 ...


0

One solution is to find out the extent of data in projection of data (EPSG: 4326 in my case) and set it for the projection: ol.proj.get('EPSG:4326').setExtent([148, -8, 17558, 178])


1

There are two options 1) if input data is 16 bit convert into 8 bit data. 2)By placing PROCESSING "SCALE=AUTO" as follow MAP NAME "terra" # Map image size SIZE 600 600 UNITS dd EXTENT 77.0962025047 23.8718740333 84.6389301196 30.4075924299 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END # Background color for the map ...


1

the previous code does not yet work with ol3. So use the following syntax: is tested with POSTGIS and Mapserver ! var map = new ol.Map({ target: 'map', renderer: 'canvas', maxResolution: 156543.0399, controls: ol.control.defaults().extend([ new ol.control.ScaleLine({ units:'metric' }) ]), layers: layers, view: new ol.View({ ...


-2

there is a good comparison here http://www.digital-geography.com/arcgis-server-vs-open-source-gis-solutions/#.VRSBG_mUfIt


-1

You can use CartoServer but you will need to install CartoView first.


0

If it's a vectorlayer you can use the getDataExtent()-Method. Otherwise you can also just set the extent manually, grab the centerpoint for this extent and use this centerpoint to center the map: Just move the map to the extent you like and get the coordinates in your console: map.events.register("moveend", map, function () { var centerpoint = ...


1

The easiest way to achieve the same in OpenLayers 3 is to use WMS GetFeatureInfo. Your code could look something like this (assuming mymap is your layer with a WMS source, and map is your ol.Map instance): var parser = new ol.format.WMSGetFeatureInfo(); var highlightOverlay = new ol.FeatureOverlay({ // style: (customize your highlight style here), map: ...



Top 50 recent answers are included