• Superb@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      4 months ago

      I guess I understand wanting to focus on other platforms since every device with safari also has a maps app, but the website is supposed to work on an iPad?

      They should’ve at least put a redirect to the native version instead of the browser unsupported message.

    • Sorse
      link
      fedilink
      arrow-up
      3
      ·
      4 months ago

      Changing the scaling makes it work

      50% scaling, works fine

      100% scaling, doesn’t work

  • 2xsaiko
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 months ago

    I tried to get it to work in Firefox by changing the user agent but it only works if you make the window small enough (???). Even trying to hack patch their stupid redirect away with the userscript below leaves the map empty if you resize above a certain size so there’s probably actually something they’re doing that doesn’t work.

    Userscript
    // ==UserScript==
    // @name        New script apple.com
    // @namespace   Violentmonkey Scripts
    // @match       https://beta.maps.apple.com/*
    // @grant       none
    // @version     1.0
    // @author      -
    // @description 2024-07-25, 15:04:37
    // ==/UserScript==
    
    (() => {
      const realSetTimeout = window.setTimeout;
    
      window.setTimeout = (f, t) => {
        const err = Error();
    
        if (err.stack.includes("mapNodeDidFail")) {
          console.log(f, t, err);
          return;
        }
    
        realSetTimeout(f, t);
      };
    })();
    

    EDIT: this is probably the same issue as the scaling one on the iPhone