Tag Info

New answers tagged

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({ ...


0

You can achieve this using a style function on your vector layer. This is a function that is called whenever a feature is rendered, with the feature and the view resolution as arguments. The function is supposed to return an array of styles. The official vector-layer example shows how to do this. To see the example live, go to ...


0

Got it! I can't copy-n-paste from my code, so I retyped it. Forgive any typos. html: <form role="form" id="form1" action="submit"> <div class="form-group col-lg-6"> <label for="bbox3">Upper Left</label> <input type="text" style="font-size: x-small;" class="form-control" name="bbox[3]" ...



Top 50 recent answers are included