[ka-Map-users] Problem with kaXmlIcon on kaXmlOverlay
Fabian Rami
fabian.rami at wowcompany.com
Fri Feb 16 08:10:39 EST 2007
Hi all Ka-Map users ,
I have this problem :
- when i try to add some kaXmlIcon to a kaXmlPoint, only few of them
are on the map.
When i add those same points with kaXmlSymbol it works perfectly!
I search on the net to found why it doesn't work and i found this 2
solutions who doesn't change anything :(
First one :
In the file kaXMLOverlay.js remplace :
this.img.onload = function()
{
ctx.drawImage(timg, dx, dy, tw, th);
ctx.restore();
}
by
ctx.drawImage(timg, dx, dy, tw, th);
ctx.restore();
Doesn't work for me !
Second one :
in the same file, replace :
this.img = new Image();
this.img.src = this.icon_src;
var timg = this.img;
var tw = this.icon_w;
var th = this.icon_h;
this.img.onload = function()
{
ctx.drawImage(timg, dx, dy, tw, th);
ctx.restore();
}
by
this.img = new Image();
var timg = this.img;
var tw = this.icon_w;
var th = this.icon_h;
this.img.onload = function()
{
ctx.drawImage(timg, dx, dy, tw, th);
ctx.restore();
}
this.img.src = this.icon_src;
Doesn't work for me neither !
Please help me !
Ask for more details if you need it !
I don't know what you need to help me.
Best regards ,
Fabian
More information about the ka-Map-users
mailing list