[OpenLayers-Users] Is drawing lines (canvas.drawLine) in Internet Explorer possible?

Christopher Schmidt crschmidt at metacarta.com
Wed Apr 11 07:12:25 EDT 2007


On Wed, Apr 11, 2007 at 11:06:48AM +0200, Pfirter Lukas wrote:
> Hello List,
> I've tested the OpenLayers Canvas example and it worked fine with
> Firefox, at least with the google map selected (not with the wms, but I
> only need the Google one anyways):
> http://map.webser125.lookass.ch/openlayers/examples/canvas.html
> After a few tests, I developed a tool to draw a route on the google map
> using this canvas thing and markers:
> http://dev.webser125.lookass.ch/OpenLayers_Google_db/click_lines.php
> I saw that it does not work with IE, so I checked the original canvas
> implementation from the OpenLayers examples: I found out that this one
> doesn't work with IE aswell.
> Is there any way to make drawing lines compatible with IE?
> Another question:
> Is it possible to get the distance between markers in km? Haven't seen
> that anywhere.

The canvas layer is not supported. Move to the Vector layer. It works in
IE out of the box, and it works on top of WMS. It's in the 2.4-rc1 we're
testing now, and is the way to go going forward.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list