HERE iOS sdk: Polygon lineColor change fails at runtime
I am using HERE iOS SDK and I am trying to change the style of a test polygon, e.g. background and line colour.
While setting the background colour to white would work:
let polygon = NMAMapPolygon()
polygon.fillColor = UIColor.white
changing the line colour wouldn't. :(
polygon.lineColor = UIColor.red
Update: I tested the same behaviour with NMAMapCircle - fill colour changes immediately, line colour doesn't...
Can anybody help me with that? I don't get a runtime/debug error or anything, it just doesn't react.
add a comment |
I am using HERE iOS SDK and I am trying to change the style of a test polygon, e.g. background and line colour.
While setting the background colour to white would work:
let polygon = NMAMapPolygon()
polygon.fillColor = UIColor.white
changing the line colour wouldn't. :(
polygon.lineColor = UIColor.red
Update: I tested the same behaviour with NMAMapCircle - fill colour changes immediately, line colour doesn't...
Can anybody help me with that? I don't get a runtime/debug error or anything, it just doesn't react.
Are you using the latest sdk version. Please provide your mobile version and sdk version you are using.
– HERE Developer Support
Nov 28 '18 at 18:25
Xcode 10.1, framework NMAKit 3.9.0.15
– Lucyfe
Dec 6 '18 at 12:11
add a comment |
I am using HERE iOS SDK and I am trying to change the style of a test polygon, e.g. background and line colour.
While setting the background colour to white would work:
let polygon = NMAMapPolygon()
polygon.fillColor = UIColor.white
changing the line colour wouldn't. :(
polygon.lineColor = UIColor.red
Update: I tested the same behaviour with NMAMapCircle - fill colour changes immediately, line colour doesn't...
Can anybody help me with that? I don't get a runtime/debug error or anything, it just doesn't react.
I am using HERE iOS SDK and I am trying to change the style of a test polygon, e.g. background and line colour.
While setting the background colour to white would work:
let polygon = NMAMapPolygon()
polygon.fillColor = UIColor.white
changing the line colour wouldn't. :(
polygon.lineColor = UIColor.red
Update: I tested the same behaviour with NMAMapCircle - fill colour changes immediately, line colour doesn't...
Can anybody help me with that? I don't get a runtime/debug error or anything, it just doesn't react.
edited Nov 27 '18 at 15:27
Lucyfe
asked Nov 27 '18 at 15:17
LucyfeLucyfe
11
11
Are you using the latest sdk version. Please provide your mobile version and sdk version you are using.
– HERE Developer Support
Nov 28 '18 at 18:25
Xcode 10.1, framework NMAKit 3.9.0.15
– Lucyfe
Dec 6 '18 at 12:11
add a comment |
Are you using the latest sdk version. Please provide your mobile version and sdk version you are using.
– HERE Developer Support
Nov 28 '18 at 18:25
Xcode 10.1, framework NMAKit 3.9.0.15
– Lucyfe
Dec 6 '18 at 12:11
Are you using the latest sdk version. Please provide your mobile version and sdk version you are using.
– HERE Developer Support
Nov 28 '18 at 18:25
Are you using the latest sdk version. Please provide your mobile version and sdk version you are using.
– HERE Developer Support
Nov 28 '18 at 18:25
Xcode 10.1, framework NMAKit 3.9.0.15
– Lucyfe
Dec 6 '18 at 12:11
Xcode 10.1, framework NMAKit 3.9.0.15
– Lucyfe
Dec 6 '18 at 12:11
add a comment |
1 Answer
1
active
oldest
votes
We rechecked 3.9 with the following code.
Everything works perfectly normal.Can you please check it on your side?
//create geo coordinate
let geoCoordCenter = NMAGeoCoordinates(latitude: 49.260327, longitude: -123.115025)
//set map view with geo center
self.mapView.set(geoCenter: geoCoordCenter, animation: .none)
//set zoom level
self.mapView.zoomLevel = 13.2;
// set map circle
let circle = NMAMapCircle(geoCoordCenter)
circle.fillColor = UIColor.white
circle.lineColor = UIColor.red
circle.lineWidth = 10
circle.radius = 1000
self.mapView.add(mapObject: circle)

add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53502735%2fhere-ios-sdk-polygon-linecolor-change-fails-at-runtime%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
We rechecked 3.9 with the following code.
Everything works perfectly normal.Can you please check it on your side?
//create geo coordinate
let geoCoordCenter = NMAGeoCoordinates(latitude: 49.260327, longitude: -123.115025)
//set map view with geo center
self.mapView.set(geoCenter: geoCoordCenter, animation: .none)
//set zoom level
self.mapView.zoomLevel = 13.2;
// set map circle
let circle = NMAMapCircle(geoCoordCenter)
circle.fillColor = UIColor.white
circle.lineColor = UIColor.red
circle.lineWidth = 10
circle.radius = 1000
self.mapView.add(mapObject: circle)

add a comment |
We rechecked 3.9 with the following code.
Everything works perfectly normal.Can you please check it on your side?
//create geo coordinate
let geoCoordCenter = NMAGeoCoordinates(latitude: 49.260327, longitude: -123.115025)
//set map view with geo center
self.mapView.set(geoCenter: geoCoordCenter, animation: .none)
//set zoom level
self.mapView.zoomLevel = 13.2;
// set map circle
let circle = NMAMapCircle(geoCoordCenter)
circle.fillColor = UIColor.white
circle.lineColor = UIColor.red
circle.lineWidth = 10
circle.radius = 1000
self.mapView.add(mapObject: circle)

add a comment |
We rechecked 3.9 with the following code.
Everything works perfectly normal.Can you please check it on your side?
//create geo coordinate
let geoCoordCenter = NMAGeoCoordinates(latitude: 49.260327, longitude: -123.115025)
//set map view with geo center
self.mapView.set(geoCenter: geoCoordCenter, animation: .none)
//set zoom level
self.mapView.zoomLevel = 13.2;
// set map circle
let circle = NMAMapCircle(geoCoordCenter)
circle.fillColor = UIColor.white
circle.lineColor = UIColor.red
circle.lineWidth = 10
circle.radius = 1000
self.mapView.add(mapObject: circle)

We rechecked 3.9 with the following code.
Everything works perfectly normal.Can you please check it on your side?
//create geo coordinate
let geoCoordCenter = NMAGeoCoordinates(latitude: 49.260327, longitude: -123.115025)
//set map view with geo center
self.mapView.set(geoCenter: geoCoordCenter, animation: .none)
//set zoom level
self.mapView.zoomLevel = 13.2;
// set map circle
let circle = NMAMapCircle(geoCoordCenter)
circle.fillColor = UIColor.white
circle.lineColor = UIColor.red
circle.lineWidth = 10
circle.radius = 1000
self.mapView.add(mapObject: circle)

answered Dec 19 '18 at 9:54
HERE Developer SupportHERE Developer Support
1,8001611
1,8001611
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53502735%2fhere-ios-sdk-polygon-linecolor-change-fails-at-runtime%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you using the latest sdk version. Please provide your mobile version and sdk version you are using.
– HERE Developer Support
Nov 28 '18 at 18:25
Xcode 10.1, framework NMAKit 3.9.0.15
– Lucyfe
Dec 6 '18 at 12:11