[OpenLayers-Dev] text labels in IE8
Mike Adair
madair at dmsolutions.ca
Tue May 5 16:08:29 EDT 2009
I should have picked up on this sooner but the VML patch for
http://trac.openlayers.org/ticket/1910 needs to include 'textbox' for
the list of element types and then IE places the labels correctly. I
will update that patch with that change. I still don't see what
difference the server was making but with that patch applied it works
now with Oracle App server.
Don't know if the issue in #1910 is resolved but testing with the
vector-features-with-text example, the only browser mode/document mode
combination that didn't work was if document mode was in IE7 standards.
I'm not seeing the 'squished' behaviour that Amos mentions but perhaps
I'm not looking for the correct thing.
Isn't it wonderful that IE gives us more browser and document mode
combinations to fail with? ;-)
Mike
Christopher Schmidt wrote:
> On Mon, May 04, 2009 at 11:20:18AM -0400, Mike Adair wrote:
>
>> Yes, I'm testing against trunk (and also the OL2.8 branch). When I was
>> doing these tests, the compressed file coming from openlayers/dev/ had a
>> revision tag of 9309 in it, which is just before the 2.8 RC1 release I
>> believe.
>>
>> Testing again this morning I found that when the example is served from
>> my local MS4W Apache, it is working correctly, but served from a local
>> Oracle Application Server instance the labels are placed incorrectly.
>> I'll investigate that further.
>>
>
> Possibly a different doctype is being placed on the doc wrapped in
> Oracle.
>
>
>> Mike
>>
>> Christopher Schmidt wrote:
>>
>>> On Mon, May 04, 2009 at 10:19:01AM -0400, Julien-Samuel Lacroix wrote:
>>>
>>>
>>>> It would help to know where the files are coming from.
>>>>
>>>> Is the compressed file on openlayers.org [1] built from SVN or from a
>>>> release?
>>>>
>>>>
>>> That is built from SVN every time a new checkin is made.
>>>
>>>
>>>
>>>> Do you use trunk or a sandbox?
>>>>
>>>>
>>> Since he's said he's using /dev/, he's using trunk.
>>>
>>> -- Chris
>>>
>>>
>>>
>>>> Julien
>>>>
>>>> [1] http://openlayers.org/dev/OpenLayers.js
>>>>
>>>>
>>>>
>>>> Mike Adair wrote:
>>>>
>>>>
>>>>> So I've been banging my head on IE for long enough on this, I'd like to
>>>>> know if anyone else has any ideas...
>>>>>
>>>>> I'm trying to get the new vector labeling working in IE8 and to figure
>>>>> out why it's not working locally. All test cases are in IE8
>>>>> compatibility mode, Quirks mode.
>>>>>
>>>>> If I go to the examples page at:
>>>>> http://openlayers.org/dev/examples/vector-features-with-text.html it
>>>>> works without a problem, labels show up aligned with the vector features.
>>>>> If I load the example served from my local machine (from an MS4W
>>>>> instance), the labels all appear in the top-left corner. (both default
>>>>> single-file build and loading individual files)
>>>>> If I load the example served from my local machine but with the
>>>>> OpenLayers single file build at http://openlayers.org/dev/OpenLayers.js
>>>>> it works properly.
>>>>>
>>>>> Doing a diff on the generated VML shows that for the one that works, the
>>>>> <ovl:textbox> node has extra style properties of:
>>>>> "MARGIN-TOP: 88.875pt; MARGIN-LEFT: 141.375pt; TOP: auto; LEFT: auto"
>>>>> which appears to make the labels show up in the correct place. I've
>>>>> searched the WML renderer code and I can't find anywhere that is adding
>>>>> those properties
>>>>>
>>>>> So I guess the questions are:
>>>>> - what's the difference between a local single file build and the one
>>>>> server from openlayer.org?
>>>>> - anyone know what is adding those extra style properties?
>>>>>
>>>>> Thanks for any pointers,
>>>>>
>>>>> Mike
>>>>>
>>>>>
>>>>>
>>>>>
>>>> --
>>>> Julien-Samuel Lacroix
>>>> Mapgears
>>>> http://www.mapgears.com/
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev at openlayers.org
>>>> http://openlayers.org/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>> --
>> Michael Adair
>> Senior Software Architect
>> DM Solutions Group Inc.
>>
>> Office: (613) 565-5056 x26
>> madair at dmsolutions.ca
>> http://www.dmsolutions.ca
>> http://research.dmsolutions.ca
>>
>>
>>
>
>
--
Michael Adair
Senior Software Architect
DM Solutions Group Inc.
Office: (613) 565-5056 x26
madair at dmsolutions.ca
http://www.dmsolutions.ca
http://research.dmsolutions.ca
More information about the Dev
mailing list