polfdz / osmbonuspack

Automatically exported from code.google.com/p/osmbonuspack
0 stars 0 forks source link

colours of the kml file are not respected #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. tutorial 4
2.
3.

What is the expected output? What do you see instead?

All is good except colours: all the lines of the polygons are black.

What version of the products are you using (Android SDK, osmdroid,
OSMBonusPack)? android 4.4.2 osmdroid 4.2 OSMBonusPack 4.5

Please provide any additional information below.

I an using the following line: 
FolderOverlay kmlOverlay = (FolderOverlay) 
kmlDocument.mKmlRoot.buildOverlay(carte, null, null, kmlDocument);

Original issue reported on code.google.com by cyberj...@gmail.com on 12 Jun 2014 at 1:40

Attachments:

GoogleCodeExporter commented 9 years ago
The issue is that your kml file uses StyleMap, but OSMBonusPack doesn't handle 
StyleMap currently. This is also why the airplanes icons are replaced by the 
default marker. 

We could add StyleMap support in the lib - at least to route to the "normal" 
style. 

In the meantime, if you can replace in each <styleUrl> the id of the StyleMap 
by the id of its "normal" Style, your kml should be displayed nicely. 

Original comment by mathieu....@gmail.com on 12 Jun 2014 at 5:11

GoogleCodeExporter commented 9 years ago
Thank you very much for the reply!
Your lib is very useful for my project.

Original comment by cyberj...@gmail.com on 12 Jun 2014 at 7:34

GoogleCodeExporter commented 9 years ago
StyleMap support now added. 
The sources are commited, and the osmbonuspack_snapshot.jar is available in 
Downloads. 

Original comment by mathieu....@gmail.com on 13 Jun 2014 at 8:55

GoogleCodeExporter commented 9 years ago
StyleMap support is integrated in v4.6

Original comment by mathieu....@gmail.com on 24 Jun 2014 at 8:13