[OpenLayers-Users] fontSize overwritten in renderer
Jan Henrik Øverland
janhenrik.overland at gmail.com
Mon Oct 8 11:18:38 PDT 2012
Hi, I have the same issue, any solution?
And here the fontSize seems to be ignored regardless of the renderers
property being set or not.
On Mon, Aug 27, 2012 at 10:11 PM, Paw3l <goghi at o2.pl> wrote:
> Hi all,
>
> I have some vector layer defined in the following way:
>
> var vectors = new OpenLayers.Layer.Vector("GML", {
> renderers: ["Canvas", "SVG", "VML"],
> styleMap: new OpenLayers.StyleMap({'default':{
> pointRadius: 0,
> label : "\${name}",
> fontColor: "#0066CC",
> fontSize: "18px",
> fontFamily: "Courier New, monospace"
> }})
> });
>
> I can see that my fontSize for this layer is unheralded: no matter if it is
> set as "18px" or "26px" or whatever else it is displayed always in the same
> way. Interesting this is that when I comment the line
>
> renderers: ["Canvas", "SVG", "VML"],
>
> out the fontSize value seems to work properly.
>
> I suppose the fontSize is somehow overwritten in some renderer like Canvas.
> Is this possible? Could anyone tell me where should I look for it?
>
> Kind regards,
> Pawel
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/fontSize-overwritten-in-renderer-tp4998159.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121008/05380d59/attachment.html>
More information about the Users
mailing list