HERE iOS sdk: Polygon lineColor change fails at runtime












0















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.










share|improve this question

























  • 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
















0















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.










share|improve this question

























  • 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














0












0








0








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.










share|improve this question
















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.







here-api






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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



















  • 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












1 Answer
1






active

oldest

votes


















0














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)


enter image description here






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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)


    enter image description here






    share|improve this answer




























      0














      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)


      enter image description here






      share|improve this answer


























        0












        0








        0







        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)


        enter image description here






        share|improve this answer













        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)


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 19 '18 at 9:54









        HERE Developer SupportHERE Developer Support

        1,8001611




        1,8001611
































            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Lallio

            Futebolista

            Jornalista