Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Alternative method for setStyleJSON? #1367

Closed

Description

@robipresotto

mbglMap->setStyleJSON((std::string)[styleJSON cStringUsingEncoding:NSUTF8StringEncoding]

I can not see more this method on public api.

Activity

  1. kkaefer commented on Apr 29, 2015

    @kkaefer
    Member

    Can you please elaborate?

  2. 1ec5 commented on Apr 29, 2015

    @1ec5
    Contributor

    As explained in #1299, I removed -styleJSON: from MGLMapView for now, per #1147 (comment) and #900. We'll eventually need some way to interact with styles with that kind of granularity for #837.

  3. robipresotto commented on Apr 29, 2015

    @robipresotto
    Author

    still some crashes on json serialisation,

    10 Foundation                     0x00000001838ec6f0 +[NSJSONSerialization JSONObjectWithData:options:error:] + 80
  4. 1ec5 commented on Apr 29, 2015

    @1ec5
    Contributor

    On the other hand, if you’re seeing a crash in +[NSJSONSerialization JSONObjectWithData:options:error:], it’s likely an exception caused by malformed JSON or a JSON object of a different type than GL expects. You should set an exception breakpoint and see where and why the exception is thrown.

  5. robipresotto commented on Apr 29, 2015

    @robipresotto
    Author

    👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions