I wonder does anyone have recent experience using Our.Umbraco.Gmaps in a Custom Section of a site? ie in angular rather than just as a Data Type. I am setting up a "dealer map" for dealers and their branches. Admin is mostly done, the only bit left is the actual map in the branch edit page where you select a location. I have code from Umbraco 7 which I am trying to base it off but it's not working. This is the first chunk of my App_Plugins\WebsiteAdmin\backoffice\DealerTree\branchedit.controller.js
$scope.location gets the correct coordinates from the database but it doesn't show correctly on the map. I'm thinking I need to change this to something like $scope.address.coordinates.lat and long but I don't know exactly what's needed and how to implement it. Any help would be great thanks!
Umbraco 10.4.2, Our.Umbraco.GMaps 2.1.3
Changed to $scope.address.coordinates.lat and lng - but still not working in that the map appears and can go to searched-for address etc but the pin on load are not the coordinates from the database and new coordinates don't get saved to $scope.branch. So I'm obviously missing something vital
Our.Umbraco.Gmaps in a Custom Section
I wonder does anyone have recent experience using Our.Umbraco.Gmaps in a Custom Section of a site? ie in angular rather than just as a Data Type. I am setting up a "dealer map" for dealers and their branches. Admin is mostly done, the only bit left is the actual map in the branch edit page where you select a location. I have code from Umbraco 7 which I am trying to base it off but it's not working. This is the first chunk of my App_Plugins\WebsiteAdmin\backoffice\DealerTree\branchedit.controller.js
$scope.location gets the correct coordinates from the database but it doesn't show correctly on the map. I'm thinking I need to change this to something like $scope.address.coordinates.lat and long but I don't know exactly what's needed and how to implement it. Any help would be great thanks! Umbraco 10.4.2, Our.Umbraco.GMaps 2.1.3
Changed to $scope.address.coordinates.lat and lng - but still not working in that the map appears and can go to searched-for address etc but the pin on load are not the coordinates from the database and new coordinates don't get saved to $scope.branch. So I'm obviously missing something vital
is working on a reply...