[ka-Map-users] kaXmlOverlay
Ionut Muntean
ionut at muntean.ro
Fri Feb 9 07:09:26 EST 2007
Hi,
I'm using kXmlOverlay to render some graphics (lines and points). The
line and point data are loaded with MyXmlOverlay.loadXml();.
Everything is workink fine on IE6 but Firefox complains about 2
functions in kaXmlOverlay. The first function is
_BrowserIdent_getCanvasContext(); and the second function is
_BrowserIdent_setCanvasHW;.
Is the linestring definition too big?
Any help would be apreciated.
Thank you,
Ionut Muntean
The errors are:
[Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIDOMHTMLCanvasElement.getContext]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
http://eos/XMLOverlay/kaXmlOverlay.js :: _BrowserIdent_getCanvasContext
:: line 1550" data: no]
http://eos/XMLOverlay/kaXmlOverlay.js
Line 1550
The xml file loaded with loadXml:
<overlay>
<point x="391644.9327450697" y="5056212.401141137" id="p1">
<label>Auto 1</label>
<symbol shape="bullet" size="15" opacity="0.75" color="#ff0000" />
</point>
<point x="391551.026882342" y="5065220.709017283" id="l1">
<linestring color="#ff0000" stroke="3" opacity="0.8">
391551.026882342 5065220.709017283,391515.033771990
5065160.761219484,391497.000110514 5065094.734658999,391473.021195302
5065040.695658481,391461.023491851 5064986.666655928,391431.000372769
5064938.626434376,391418.953194253 5064890.606208753,391406.906015737
5064824.579648267,391382.894117147 5064764.541868784,391370.855184475
5064734.517980059,391352.846260532 5064710.612845880,391334.829090746
5064668.581401259,391316.844904336 5064632.548735603,391316.836658492
5064596.546063842,391286.813539410 5064566.512177153,391268.755140402
5064530.479511498,391244.743241812 5064488.448066876,391226.750809558
5064434.419064322,391214.736614419 5064392.397617666,391190.699978296
5064344.357396115,391142.610214362 5064296.417154212,391034.507195642
5064248.296948940,390860.280751512 5064176.441574893,390752.194224481
5064116.433789304,390680.100807801 5064080.361131788,390595.993195982
5064038.379676991,390529.943983171 5063996.308240511,390481.845973393
5063948.258020993,390421.816226918 5063894.299004194,390355.684555664
5063852.347543293,390259.587486239 5063810.366088496,390181.573553355
5063792.289767878,390097.457695692 5063750.318311047,389977.323990144
5063696.319302388,389899.211107128 5063690.360515282,389827.167165514
5063600.398826723,389761.019002572 5063540.331053344,389694.953298072
5063480.373257579,389574.737134081 5063378.374019229,389478.631818812
5063306.398669602,389358.423900665 5063192.501852969,389256.307364904
5063084.513833617,389124.002793175 5062982.624572881,389063.923571634
5062922.686773046,389009.756620454 5062862.748973211,389003.770137495
5062784.724854794,389003.704170741 5062706.710734342,389003.745399962
5062634.575417276,389021.787307282 5062550.572515823,389027.757298552
5062448.443303928,389003.893825160 5062328.397738854,388961.765806652
5062232.347289645,388883.652923636 5062148.394378017,388811.699686309
5062004.193729640,388769.687109621 5061884.138166602,388685.587743646
5061709.943623396,388619.653972656 5061589.758086814,388487.547301190
5061361.514545124,388427.525800560 5061193.438756463,388373.589733020
5060995.249097394,388331.560664643 5060827.073329084,388289.548087955
5060694.910230499,388187.390322972 5060622.944878837,387995.311625942
5060574.824673566,387809.169936805 5060484.822993146,387689.102198011
5060430.753998733,387617.000535487 5060388.822533762,387532.934152889
5060322.765979381,387466.983890210 5060250.710646036,387424.847625858
5060220.686757311,387406.879931137 5060148.661417861,387382.843295014
5060094.532435657,387364.834371072 5060046.512210035,387340.805980793
5059992.493205447,387310.791107556 5059926.466644961,387268.786776712
5059878.436421375,387190.706877074 5059842.393757754,387148.719037918
5059812.369869029,387094.634545181 5059776.337203374,387016.546399698
5059710.290646959,386944.510703929 5059668.259202338,386860.518533930
5059590.315067641,386776.386184578 5059530.277288156,386740.335353316
5059488.365819114,386686.209631357 5059446.444352107,386638.235309243
5059404.532883065,386578.189071080 5059362.501438444,386500.051450531
5059272.569743779,386445.999941171 5059290.666060327,386397.934914770
5059260.762147181,386355.905846393 5059194.845564310,386301.837845345
5059134.927760405,386241.676165361 5059087.017512398,386157.601536920
5059039.207244040,386025.428898699 5059003.384535647,385941.387253635
5059021.480852195,385869.368049554 5059015.462077299,385803.351820120
5058967.441851676,385695.323013999 5058973.420634713,385617.300835270
5058967.291882202,385551.309343369 5058967.171906623,385497.315554919
5058967.051931044,385473.278918797 5059003.054602805,385395.355690200
5058972.810758851,385353.310130135 5058918.791754263,385221.294162956
5058870.541575447,385167.292128662 5058840.417707073,385077.313475704
5058756.274834110,385005.277779934 5058720.152186771,384981.274127189
5058648.136845284,384963.215728181 5058593.897885467,384933.209100788
5058563.893992673,384909.213693886 5058521.872546016,384885.177057764
5058485.869874256,384843.197464453 5058461.744784848,384807.237337478
5058425.732115122,384789.121217560 5058389.729443361,384759.205294454
5058347.717994670,384717.192717766 5058317.594126296,384603.111461931
5058245.468807195,384519.086308555 5058227.462472333,384447.157808761
5058239.350052650,384363.083180320 5058239.350052650,384249.043153706
5058233.241296070,384176.999212092 5058197.018669081,384098.919312454
5058155.007220389,384032.977295619 5058094.999434800,383972.980532521
5058040.880450562,383918.879548095 5057980.872664973,383930.951464145
5057896.849767590,383996.926464357 5057836.722006422,384026.933091750
5057782.703001833,384020.880642037 5057716.686439313,383984.953498439
5057674.684988586,383936.921455415 5057656.678653724,383882.894683588
5057638.572339212,383804.839521482 5057602.569667450,383714.770164237
5057590.582107483,383636.772723042 5057566.357038426,383630.728519173
5057530.354366666,383594.718917132 5057488.342917974,383528.669704321
5057440.342688282,383462.735933331 5057398.231259941,383414.670906930
5057320.107161874,383306.633854964 5057302.120822941,383228.578692858
5057254.020613600,383210.578014760 5057200.011606976,383180.604370744
5057055.870946390,383162.554217580 5057019.858276664,383132.531098498
5056989.864381834,383126.569353072 5056941.854154177,383120.558132581
5056899.842705485,383090.551505188 5056845.833698862,383024.527029910
5056803.622290871,383018.532301107 5056737.605728352,383018.507563574
5056665.580388900,383018.474580197 5056605.572603311,382988.500936181
5056503.553369030,382976.503232730 5056449.434384792,382910.421036542
5056371.320284691,382844.413052953 5056293.316162203,382784.358568945
5056179.189392377,382754.335449864 5056095.176492958,382724.361805848
5056035.168707370,382676.346254512 5055981.169698711,382640.336652472
5055914.943178927,382622.327728529 5055860.934172303,382574.303931350
5055806.935163645,382556.295007407 5055752.926157022,382550.283786915
5055710.804730716,382520.252421990 5055680.810835887,382490.188073686
5055632.810606194,382484.267557482 5055578.791601606,382454.170225802
5055524.792592947,382412.149403269 5055470.683606674,382388.170488057
5055410.565843470,382370.252268401 5055332.551723018,382370.219285024
5055260.526383568,382364.158589467 5055170.514705184,382340.105461655
5055110.396941979,382316.101808910 5055044.390377425,382262.116266304
5054972.385033904,382250.184529608 5054918.376027280,382178.124096305
5054756.139050147,382148.092731379 5054714.137599420,382094.090697085
5054666.037390077,382094.049467864 5054606.019606523,382082.084747790
5054546.011820934,382028.016746741 5054474.016475378,381962.017008996
5054401.911152207,381907.965499636 5054371.927255343,381866.002398014
5054329.925804616,381829.959812596 5054287.934351854,381775.883565703
5054227.826586615,381787.938990064 5054143.803689233,381823.932100416
5054059.770793885,381847.985228227 5053987.625478854,381877.967118088
5053915.600139404,381889.973067382 5053849.573578918,381859.941702457
5053795.464592645,381811.942642810 5053735.466805021,381673.882471762
5053675.399031642,381613.869216976 5053615.411241982,381541.800537829
5053561.432229254,381493.793232338 5053513.332019912,381451.714688896
5053453.334232287,381427.744019527 5053357.323774938,381409.718603896
5053291.207232769,381343.661145241 5053225.220664143,381301.706289463
5053159.224097553,381283.639644611 5053087.098778452,381283.639644611
5053021.082215932,381235.615847431 5052985.099540101,381175.619084334
5052943.118085304,381103.550405187 5052889.029094961,381067.540803146
5052841.038863234,381031.522955261 5052805.046189439,380983.466174705
5052750.947201131,380923.469411607 5052708.965746334,380911.446970624
5052630.731670653,380875.445614427 5052570.743880994,380893.479275903
5052522.713657406,380839.386537321 5052438.730751883,380827.397079715
5052378.602990715,380791.428706896 5052324.613980021,380755.336646412
5052276.623748293,380755.402613166 5052210.607185774,380731.357731199
5052156.498199500,380707.312849232 5052114.496748774,380653.310814938
5052084.522849875,380617.284721209 5052060.537731975,380593.322297685
5052006.428745703,380587.278093816 5051910.408290388,380581.299856701
5051838.392948901,380581.283365013 5051772.376386382,380521.270110227
5051742.292509867,380467.185617489 5051712.318610967,380449.193185235
5051652.310825378,380431.184261293 5051604.200618071,380401.210617277
5051550.201609413,380293.148827778 5051508.150168861,380227.083123279
5051496.192602789,380173.072843141 5051466.218703889,380125.024308428
5051442.133606342,380047.018621388 5051454.191152063,380046.993883855
5051388.174589543,380022.949001888 5051322.058047373,379998.986578364
5051244.053924886,379956.924526610 5051141.944708921,379926.917899217
5051057.951805432,379914.961424988 5050991.935242913,379890.883559644
5050895.824805913,379872.924110767 5050817.810685460,379884.905322529
5050661.762448627,379896.944255201 5050577.739551244,379878.902347882
5050487.617895246,379860.868686406 5050397.606216862,379860.901669784
5050289.578205650,379860.909915628 5050115.423654304,379860.876932251
5049971.382973366,379860.909915628 5049839.349848326,379854.898695136
5049725.213080534,379842.892745841 5049689.210408773,379848.870982956
5049647.198960082,379866.912890275 5049587.171178563,379842.826779087
5049515.175833006,379842.785549865 5049371.025174455,379854.824482537
5049298.999835004,379854.890449292 5049220.975716587,379902.906000627
5049136.922825309,379914.870720701 5049064.897485858,379920.931416258
5048998.770945723,379938.833144225 5048902.730494479,379938.973323578
5048824.706376062,379920.848957815 5048770.597389789,379908.933712808
5048686.584490371,379890.933034709 5048590.574033021,379848.813262046
5048518.478707816,379800.764727333 5048434.595781942,379734.756743744
5048350.512896769,379692.711183679 5048278.527549177,379680.738217761
5048110.381774763,379686.732946564 5048020.350100448,379692.768904589
5047936.327203065,379704.733624662 5047852.294307717,379698.705912482
5047762.062674105,379716.756065646 5047690.027336689,379734.764989588
5047624.000776203,379752.773913530 5047569.971773651,379752.757421842
5047515.962767027,379752.732684309 5047461.943762438,379740.759718391
5047419.942311713,379728.720785719 5047365.943303054,379758.752150645
5047287.899188707,379758.809871555 5047245.887740015,379740.743226703
5047215.783867572,379728.729031563 5047191.788751707,379722.767286137
5047161.774860948,379794.819473596 5047149.837290806,379824.834346833
5047143.818515910,379860.794473808 5047101.777073324,379818.781897120
5047035.680527084,379818.798388808 5046987.670299427,379848.780278668
5046963.645189668,379920.840711971 5046951.707619525,379968.872754995
5046879.652286179,380004.882357036 5046795.609392866,380046.944408789
5046741.570392349,380082.954010830 5046681.532612865,380196.977545755
5046663.566269862,380239.031351664 5046633.532383172,380257.032029762
5046615.516050344,380275.040953705 5046573.494603688,380269.046224901
5046525.484376030,380251.020809270 5046501.489260167,380251.037300959
5046465.376610791,380311.083539122 5046441.441482718,380437.129515030
5046435.362720032,380563.282686915 5046447.410267789,380635.334874373
5046447.250300350,380713.348807257 5046411.317614344,380731.250535224
5046351.289832825,380761.372604437 5046297.260830271,380767.334349863
5046249.250602614,380701.342857962 5046207.159170203,380647.258365225
5046159.178936441,380767.301366486 5046141.112613788,380923.386953164
5046105.129937957,381025.495243081 5046051.070941509,381139.568253072
5046039.123373401,381187.625033629 5046045.102156438,381223.642881513
5045997.071932850,381265.630720668 5045955.040488229,381289.650865103
5045937.034153366,381325.643975455 5045925.006601539,381367.730764741
5045924.986605610,381391.701434110 5045924.986605610,381427.719281994
5045943.082922157,381415.713332699 5045985.094370849,381421.708061503
5046021.107040574,381481.746053822 5046009.079488748,381505.733214879
5045919.047814433,381529.786342690 5045841.013698052,381565.804190575
5045871.007592881,381607.849750640 5045918.887846994,381655.857056131
5045942.882962858,381757.866395917 5045936.954169647,381805.947914006
5045894.922725026,381847.935753162 5045852.901278369,381877.975363932
5045834.884945542,381919.996186464 5045864.878840371,381992.097848988
5045870.847625442,382088.186672569 5045840.813738753,382142.205198552
5045798.892271746,382214.240894322 5045792.873496850,382256.171012567
5045780.855942988,382268.135732640 5045702.841822536,382304.170072214
5045696.823047640,382322.286192132 5045696.823047640,382346.314582410
5045666.809156881,382370.277005934 5045624.787710224,382418.350278180
5045606.661399782,382424.320269450 5045558.761149739,382454.376371909
5045504.632167537,382472.368804163 5045456.501964300,382579.564780010
5045426.708028769,382641.548791583 5045350.863466709,382717.369329885
5045330.217669101,382834.410843822 5045330.247662997,382923.952467032
5045316.460469340
</linestring>
</point>
</overlay>
More information about the ka-Map-users
mailing list