[OpenLayers-Users] RootContainer styleMap problem- IE
mortac8
ashley_c_mort at raytheon.com
Tue May 4 22:15:18 EDT 2010
It turns out my problem occurs because I am setting a custom layer.id after I
create an OpenLayers.Layer.
I guess my next question is: Is there any way to provide your own custom ID
when creating a layer? If you provide it via the options object, the div
never gets created.
Andreas Hocevar-2 wrote:
>
> Hi,
>
> posting an example that shows the issue would help. I suspect that your
> StyleMap has incomplete symbolizers.
>
> Regards,
> Andreas.
>
> On May 4, 2010, at 05:55 , mortac8 wrote:
>
>>
>> I forgot to add that my Point features with an externalGraphic retain
>> their
>> styling (no problems). The loss of styling issue seems to only occur
>> with
>> Polygons, Polylines, etc.
>>
>>
>> mortac8 wrote:
>>>
>>> In IE 7/8 when I create a SelectFeature control and pass in an array of
>>> layers, all of my features' styles are lost (am using a custom
>>> StyleMap).
>>>
>>> If I modify Control/SelectFeature:initLayer to pass the styleMap to the
>>> RootContainer constructor, the styles will take effect if I redraw after
>>> activating the tool. However IE makes such a redraw operation painfully
>>> slow.
>>>
>>> Is there any way in IE that I can activate the SelectFeature control
>>> with
>>> an array of layers and have my features keep their styling without an
>>> expensive redraw of the layers? As usual, this problem doesn't exist in
>>> other browsers.
>>>
>>> Ideas are greatly appreciated. Thanks!
>>>
>>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1803224.n2.nabble.com/RootContainer-styleMap-problem-IE-tp5001602p5001623.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/RootContainer-styleMap-problem-IE-tp5001602p5006913.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list