Hello all, I’m trying to draw a polyline on a map using the HERE add-on SDK. I’m pretty much just following instructions but once I try to create a polyline the map wont even display. I have taken bits and pieces from the sample (as there it seems to work fine) to isolate the problem but no luck. Here is the code that displays the map
result PolylineTestMainForm::OnInitializing(void) {
result r = E_SUCCESS;
String appId = L"XXX";
String appCode = L"XXX";
if (!MapApplicationContext::GetInstance().IsInitialized())
MapApplicationContext::GetInstance().Initialize(appCode, appId,
LANGUAGE_ENG);
Map*__pMap = new (std::nothrow) Map();
r = __pMap->Construct(GetClientAreaBounds().width,
GetClientAreaBounds().height);
AddControl(__pMap);
Coordinates coord;
//Coordinates for Los Angeles
coord.Set(34.0535, -118.245, 0.0);
__pMap->SetCenter(coord);
__pMap->SetZoomLevel(12.0);
__pMap->AddMapEventListener(*this);
SetFormBackEventListener(this);
return r;
}
This displays the map ok. Now when I add the polyline code
I just get a blank map with the HERE logo. What am I doing wrong? This appears to be the exactly same think that is done in the sample. Thanks for any info in advance. Regards Jirka
issues with Polyline on HMAPs
Hello all, I’m trying to draw a polyline on a map using the HERE add-on SDK. I’m pretty much just following instructions but once I try to create a polyline the map wont even display. I have taken bits and pieces from the sample (as there it seems to work fine) to isolate the problem but no luck. Here is the code that displays the map
This displays the map ok. Now when I add the polyline code
I just get a blank map with the HERE logo. What am I doing wrong? This appears to be the exactly same think that is done in the sample. Thanks for any info in advance. Regards Jirka
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio