[OpenLayers-Users] GML/vector layers in IE

Dejung Gewissler dejung.gewissler at oit.state.nj.us
Fri Jan 4 17:38:16 EST 2008


Christopher Schmidt wrote:
> On Fri, Jan 04, 2008 at 03:18:52PM -0500, Christopher Schmidt wrote:
>   
>> On Fri, Jan 04, 2008 at 02:54:13PM -0500, Dejung Gewissler wrote:
>>     
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>>> <html>
>>>       
>> Pleaes don't send HTML email.
>>     
Sorry about the email format. I've changed my email settings. Please let 
me know if it happens again.
>>     
>>> First, the vector layer not registering itself properly on the map i.e.
>>> the features are not in their correct location. In addition to them not
>>> being in their correct locations initially is that when you zoom in,
>>> them seem to jump to another location. The problem has not been obvious
>>> to me as it works OK in FF.
>>>       
>> Also, does your map have a border or margin around it? You can look at
>> this in Firefox by looking at the element using Firebug, clicking the
>> HTML tab, clicking "Inspect" and looking at the 'Layout' sub-tab to the
>> right in Firebug.
>>     
>
> The answer to the question is "Yes": you have a 5px margin on your map
> div. I suspect that putting #map { margin: 0px } in your CSS will fix
> your offset. This is a bug in the way IE handles CSS, which we have not
> worked around in our code. This is covered by #817 (or at least, it's
> the same issue as #817, even if it isn't explicitly discussed).
>
> Regards,
>   
I removed all the CSS formatting from my page except BODY and MAP and 
have made all possible margins and borders to 0px. This solved the 2nd 
issue! The VML layer was not displaying the correct location because 
there was a text-align property in the MAP div set to right. Doh!
I also tried removing the style/rule classifications, but the flash 
still happens while panning.

This leaves the style/rule classifications not functioning properly in 
IE and the flicker/flash issue. My gut feeling is that my issue is not 
the same as #817 because the flicker is always back to the original 
location of the vector layer before the panning started, not by 5 or 10 
pixels. Of course I could be wrong.

I am not using Google as a base layer. We have both an ArcGIS server 
cache and a WMS single tile map service as baselayer options. I even 
tried removing the AGS map cache but the flicker still exists.

Here is the stripped down example:
http://199.20.64.48/ags/arcgis/server/appTests/OL/x_for_outside_20080104/index_2.html

Thanks,
Dejung



More information about the Users mailing list