[ka-Map-users] Point Query drawing

Christopher Schmidt crschmidt at crschmidt.net
Fri Aug 25 09:34:01 EDT 2006


On Fri, Aug 25, 2006 at 03:00:10PM +0200, Martijn van Exel wrote:
> Hi,
> 
>  
> 
> I'm creating a web app that allows users to geocode through a ka-map
> interface.
> 
> I got the technical stuff, only the aesthetics are an issue now.
> Actually, two issues. 
> 
>  
> 
> One: In IE6, with (point) query mode enabled, a click in the map draws a
> vertical bar from the clicked point down. Firefox draws a point, th
> expected behaviour.
> 
> I think this has to do with the odd assumption IE makes that a <div>
> should at least be high enough to contain a line of text.
> 
> To work around this, the definition of the element could be dependent on
> the query type (point or rect) in kaQuery lines 112+. (version 0.2). For
> a point, a small circle (possibly a character?) could be drawn. I tried
> a quick workaround but I'm not much of a DOM expert, so my question
> would be whether anyone else can aome up with something, or has.

If the div.style.fontSize is set to 1px, it will correct this issue. 

See http://trac.openlayers.org/changeset/1357 for an example.

Regards,
-- 
Christopher Schmidt
Web Developer


More information about the ka-Map-users mailing list