Cannot Pass Dynamically Map Style In Angular-google-maps
i have an issue. I'm getting styles dynamically from a services. Styles are arrays and check that all worked ok when added inline but when i'm getting the data dynamically the map
Solution 1:
Well that was quite simple...
As the data was json angular wasn't render correctly the information, so the simple solution is to covert data with angular.fromJson().
So the correction is just edit the imported data like this:
var styleArray = angular.fromJson(data.settings.Theme.mapSelected);
And it will work.
Post a Comment for "Cannot Pass Dynamically Map Style In Angular-google-maps"