[OpenLayers-Users] scalable symbology?
Marc Jansen
jansen at terrestris.de
Thu Jun 10 10:01:21 EDT 2010
Hi Imran,
see the example http://openlayers.org/dev/examples/styles-context.html
for the use of context-methods that can be used to style features
according to the return value of a JavaScript function (the layer2 in
the example makes use of a context-object). It should be possible to
read the maps zoom level and act according to that value.
Regards,
Marc
On 10.06.2010 10:27, Imran Rajjad wrote:
> Hi,
>
> Is it possible to change the stroke width of a line feature acording
> to zoom or resolution in open layers. I have vector layer with linear
> feautres, I need the width of lines to be according to zoom levels,
> any ideas?
>
> regards,
> Imran
>
>
--
.................................................................
Im April erschienen:
OpenLayers - Webentwicklung mit dynamischen Karten und Geodaten
von M. Jansen und T. Adams, OpenSourcePress, München.
ISBN: 978-3-937514-92-5
URL: http://openlayers-buch.de
.................................................................
Dipl.-Geogr. Marc Jansen
- Anwendungsentwickler -
terrestris GmbH& Co. KG
Irmintrudisstraße 17
53111 Bonn
Tel: ++49 (0)228 / 96 28 99 -53
Fax: ++49 (0)228 / 96 28 99 -57
Email: jansen at terrestris.de
Web: http://www.terrestris.de
Amtsgericht Bonn, HRA 6835
Komplementärin: terrestris Verwaltungsgesellschaft mbH
vertreten durch: Hinrich Paulsen, Till Adams
More information about the Users
mailing list