- Previous thread: OpenLayers-Users - Documentation of apparent functionality duplication?
- Next thread: OpenLayers-Users - IE6 / OpenLayers / Path DrawFeature and DoubleClicks
- Threads sorted by date: openlayers-users 201005
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!
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.
Hi,
posting an example that shows the issue would help. I suspect that your StyleMap has incomplete symbolizers.
Regards,
Andreas.
posting an example that shows the issue would help. I suspect that your StyleMap has incomplete symbolizers.
Regards,
Andreas.
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.
>>
Hi,
The only workaround would be to do something like
var layer = new OpenLayers.Layer(...);
document.getElementById(layer.id).id = myCustomId;
layer.id = myCustomId;
The above should work, but is untested.
Regards,
Andreas.
The only workaround would be to do something like
var layer = new OpenLayers.Layer(...);
document.getElementById(layer.id).id = myCustomId;
layer.id = myCustomId;
The above should work, but is untested.
Regards,
Andreas.
Related Threads
- mongodb-user - Best way to do a rollup and remove - mongodb-user
- Xen-users - unsupported xen domain management - xen-users
- nbdev - Netbeans Platform a wise choice? - netbeans-nbdev
- android-developers - .apk and system.img - android-developers
- nbusers - Overriding Forced Directory Structure - netbeans-nbusers
- Question about parsing URL in Ruby - ruby-talk
- Make sure numbers are numbers - lua
- Re: Building Openssl on OpenVMS using extended parse-style - openssl-dev
- Boost, STLPort and Cygwin - android-ndk