Firefox - Can't find icons.png files
GoogleCodeExporter opened this issue · 1 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Directory Structure:
html> ls
susy
html/susy>ls
data green.png info.php susy.php
blue.png img script red.png
html/susy/data>ls
blue.png G.kml green.png L.kml
red.png U.kml
html/susy/script>ls
geoxml3.js susy.js
html/susy/img>ls
blue.png green.png red.png
(Icons everywhere testing...).
2. kml Structure:
...
<Document>
<StyleMap id="ok">
<Pair>
<key>normal</key>
<styleUrl>#ok_icon</styleUrl>
</Pair>
</StyleMap>
<StyleMap id="alarma">
<Pair>
<key>normal</key>
<styleUrl>#alarma_icon</styleUrl>
</Pair>
</StyleMap>
<Style id="ok_icon">
<IconStyle>
<scale>0.5</scale>
<Icon>
<href>blue.png</href>
</Icon>
</IconStyle>
<LabelStyle>
<color>ff7fffff</color>
<scale>0.5</scale>
</LabelStyle>
</Style>
<Style id="alarma_icon">
<IconStyle>
<scale>0.5</scale>
<Icon>
<href>red.png</href>
</Icon>
</IconStyle>
<LabelStyle>
....
Tested with different hrefs:
./icon_name.png
../img/icon_name.png
3. susy.js:
...
geo.parse([G, U, L]);
for (var i=0; i < geo.docs.length; i++) { geo.hideDocument(geo.docs[i]); }
var aux;
switch(N){
case "G":
aux=geo.docs[0].url;
window.alert(aux);
geo.showDocument(geo.docs[0]);
break;
case "U":
aux=geo.docs[1].url;
window.alert(aux);
geo.showDocument(geo.docs[1]);
break;
case "L":
aux=geo.docs[2].url;
window.alert(aux);
geo.showDocument(geo.docs[2]);
break;
default:
break;
...
What is the expected output? What do you see instead?
I see the map without icons.
And a console error: "Token sin cerrar" (Token not clossed)
What version of the product are you using? On what operating system?
kmz branz - r123
(ubuntu 14.04)
Please provide any additional information below.
Related to issue 107: with Firefox the output of the window.alert is correct!!
(G, U, L in every case).
The kml files are found but the icons not.
(I suppouse...)
Original issue reported on code.google.com by mateo.la...@gmail.com
on 13 Mar 2015 at 3:37
GoogleCodeExporter commented
If it is usefull this is not happening using polys branch r123.
Original comment by mateo.la...@gmail.com
on 13 Mar 2015 at 4:56