Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 499
Registered: ‎06-24-2008
My Device: Not Specified

BlackBerry 10 invoking BlackBerry Maps - Accuracy

I'm invoking BlackBerry Maps on a Z10 passing a KML string, but the position/path displayed is inaccurate. It's out by a couple of kilometers.

 

When I paste the KML into Google Maps I get an accurate position/path (or at least within the accuracy settings).

 

Is there an issue with BlackBerry Maps or is my data being somehow corrupted en route?

 

There doesn't seem to be much documentation around BlackBerry Maps - perhaps I'm looking in the wrong places.

 

My invocation code is:

 

var path = this.getPath();
blackberry.invoke.invoke({
type: "application/vnd.google-earth.kml+xml",
data: path},
kmlManager.onMapSuccess,
kmlManager.onMapFail);

 

And the KML is:

 

<?xml version="1.0" encoding="UTF-8"?><kml xmlns="http://www.opengis.net/kml/2.2"><Document>
<name>Paths</name>
<Style> id="blueLine">
<LineStyle>
<color>7f0000ff</color>
</LineStyle>
</Style><Placemark>
<name>Tracker Path</name>
<styleUrl>#blueLine</styleUrl>
<LineString>
<extrude>1</extrude>
<tesselate>1</tesselate>
<altitudeMode>absolute</altitudeMode>
<coordinates>

<!-- coordinates go here -->

</coordinates>
</LineString>
</Placemark>
</Document>
</kml>