Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sander van de Pas 74 posts 147 karma points
    Apr 05, 2016 @ 14:33
    Sander van de Pas
    0

    No Maps loaded in v7.2.4 when compilation debug set to true

    In our custom Umbraco Framework we've installed the AngularGoogleMaps package.

    Locally all works fine because we set the compilation debug value to false. But for live website we set it to true.

    But on the live site now, we can't set the pointer because there's no Map rendering and in our console log we got the following error:

    Doctype property

    Console error

    I've tried several things already, but none works: - Updated ClientDependancy - Updated package in Umbraco - Updated package with NuGet - Removed and installed package with NuGet

    Hopefully someone has an idea what's going wrong and has a solution?

    Thanks!

  • Jonathan Richards 288 posts 1742 karma points MVP
    Apr 05, 2016 @ 14:53
    Jonathan Richards
    0

    Hi Sander,

    Which version of AngularGoogleMaps do you have ?. We did have a bug in older versions of AGM when used with the DependancyHandler (Prior to 1.0.3). Also the DependancyHandler error was fixed in later versions of Umbraco, I can't remember which version, but around a year ago sounds about right.

    The other thing I just wish to recheck, you say you have debug set to true in live and false in dev - shouldn't that be the other way round ?

        <compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.5">
    
  • Ravi Motha 290 posts 500 karma points MVP 8x c-trib
    Apr 05, 2016 @ 15:12
    Ravi Motha
    0

    We also had issue with the rendering of a map on a second tab and had to delay the load as the map element isn't available on load..

        function waitForVisibleMapElement(latLng) {
            setTimeout(function () {
                if ($('#map-canvas').is(':visible')) {
                    initMap(latLng);
                } else {
                    waitForVisibleMapElement(latLng);
                };
            }, 100);
        };
    
  • Vickie Allen 3 posts 73 karma points
    Sep 02, 2016 @ 10:25
    Vickie Allen
    0

    Hi Ravi,

    We're having a similar issue with loading a second map. Where did you put this code? Can you explain in a little more detail how you solved this?

    Thanks in advance,

    Vickie

  • Sander van de Pas 74 posts 147 karma points
    Apr 05, 2016 @ 15:38
    Sander van de Pas
    0

    Hi Jonathan,

    I'm using version 1.0 and you're right, I mean for live debug is set to 'false' and for dev it's 'true'.

  • Jonathan Richards 288 posts 1742 karma points MVP
    Apr 05, 2016 @ 15:56
    Jonathan Richards
    0

    Hi Sander

    If your still using the first version of AGM, can I suggest upgrading to the latest version (1.0.8), it should be backwardly compatible. Best practice to restart the website manually (iisreset), after you install the new package via nuget or package installer - sometimes the wrong js file is cached.

  • Jonathan Richards 288 posts 1742 karma points MVP
    Apr 05, 2016 @ 16:03
    Jonathan Richards
    0

    Hi Ravi,

    Is this with the latest version of AGM ?

    The original version of AGM had lots of Angular watches, to spot when tabs were being switched etc. but this was getting heavy when people were embedding AGM inside multiple Archetypes (When they wanted to create a list of places with Google maps). So for version 1.0.5 I removed these watches to speedup content load times / it was very sluggish for some user cases. This did come with a chance that for certain clients the changes of tabs would be missed and code like the one you have copied would need to be included.

    I will take a look at this issue again, as I need to get the balance right between those heavy Archetype users and those who want fast loading times.

Please Sign in or register to post replies

Write your reply to:

Draft