[OpenLayers-Users] pb with map.getZoom
Olivier Terral
olivier at geomatic.ch
Wed Jun 20 00:00:09 PDT 2012
ExternalGraphic is a style property of a Point Symbolizer like the others, if you defined 2 rules depends on the scale it should work :
A little bit like this:
new OpenLayers.Rule({
maxScaleDenominator: 200000000,
minScaleDenominator: 100000000,
symbolizer: {
externalGraphic: 'a_img/travauxorange.png',
graphicHeight: 60*18/10 ,
graphicWidth: 65*18/10});
}),
new OpenLayers.Rule({
maxScaleDenominator: 100000000,
symbolizer: {
externalGraphic: 'a_img/travauxorange.png',
graphicHeight: 60*18/5 ,
graphicWidth: 65*18/5
}
})
Le 19 juin 2012 à 19:52, christian bleau a écrit :
> HI Olivier,
>
> yes I saw a lot of example like this one
>
> http://www.geotribu.net/applications/tutoriaux/openlayers/style/style-attribut.html
>
> they use OpenLayers.Style but are you sure than it's work with a external
> graphic ?
>
> I was thinking it's work just for an elementary symbol like circle polygon
> and so on....
>
> Best Regards
>
> Christian
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/pb-with-map-getZoom-tp4982396p4982481.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
Olivier Terral
GEOMATIC Ingénierie SA
Société du groupe Ringier
Chemin des Croisettes 26
1066 Epalinges
www.geomatic.ch
www.thevirtualcity.ch
Tél:: +41 (21) 651 30 00
Fax: +41 (21) 651 30 09
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120620/fab57f83/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.gif
Type: image/gif
Size: 5116 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120620/fab57f83/attachment-0001.gif>
More information about the Users
mailing list