MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Flights Kartendesign

    Scheduled Pinned Locked Moved Transport
    4 Posts 2 Posters 31 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Stulli
      last edited by

      Hallo,
      ich habe MMM-Flights installiert und es funktioniert. Ich finde die Optik der Karte aber nicht ansprechend und würde diese gerne etwas farbiger haben. Nur wie ich das umstellen soll, ist mir nicht klar.

      karsten13K 1 Reply Last reply Reply Quote 0
      • karsten13K Online
        karsten13 @Stulli
        last edited by

        @Stulli

        from the README:

        As default map openstreetmap is used, other maps are possible, you find a list here.

        You also can use maps from mapbox and create own maps with mapbox studio.

        With mapbox you have to provide

        • <username> (e.g. karsten13)
        • <mapid> (e.g. cjp8vd7p807su2rqp8hc4dzoq)
        • <accesstoken>

        and set the mapUrl in config.js to https://api.mapbox.com/styles/v1/<username>/<mapid>/tiles/{z}/{x}/{y}?access_token=<accesstoken>.

        1 Reply Last reply Reply Quote 0
        • S Offline
          Stulli
          last edited by

          Thanks for answer.
          I read in the README that I can change the map. However, I don’t understand how to do that.

          karsten13K 1 Reply Last reply Reply Quote 0
          • karsten13K Online
            karsten13 @Stulli
            last edited by

            @Stulli

            you can set the mapUrl in the config:

            var config = {
              modules: [
                {
                  module: "MMM-Flights",
                  position: "top_left",
                  config: {
                    laMin: 50.0,
                    laMax: 50.21,
                    loMin: 8.4,
                    loMax: 8.8,
                    mapUrl: "https://{a-d}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",
                  },
                },
              ],
            };
            
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy