[ka-Map-users] Point Query drawing

Paul Spencer pspencer at dmsolutions.ca
Fri Aug 25 10:28:16 EDT 2006


On 25-Aug-06, at 9:00 AM, 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.
>
>
Chris is right about fontSize.  Alternately (or perhaps as well) you  
can set div.style.lineHeight = '1px' to achieve the same effect.

>
>
> Two: the selection is a few pixels off, it seems. In IE, the  
> selection marker appears about 3 pixels right and down from the  
> clicked point. In FF, it seems to be more accurate but still not  
> entirely. Is this a known issue or did I screw up something  
> tweaking the default page layout?

um this could be a side effect of the first problem I suppose.  Are  
you actually adding something to the map or is this the query tool  
that you are talking about?

Cheers

Paul

>
>
> Thanks,
>
> Martijn
>
> Met vriendelijke groeten,
> Bridgis B.V.
>
> Martijn van Exel
> Manager Data Service Centre
>
> Sint Walburgkerkpad 3
> 4001 MG  Tiel
> T (0344) 63 62 42
> M (06) 534 75 786
>
> *Kijk op onze vernieuwde website www.bridgis.nl*
>
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+







More information about the ka-Map-users mailing list