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:
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?
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 ?
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.
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.
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:
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!
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 ?
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..
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
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'.
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.
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.
is working on a reply...