@trimblemaps/webtools-common
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -61,2 +61,8 @@ (function () { | ||
dataset: "PCM_AF" | ||
}, | ||
"GT": { | ||
index: 8, | ||
name: "GTMap", | ||
region: "GT", | ||
dataset: "PCM_GT" | ||
} | ||
@@ -63,0 +69,0 @@ }; |
@@ -22,5 +22,5 @@ (function () { | ||
mapSylesController.$inject = ["$scope", "$element", "$attrs", "$translate", "mapService"]; | ||
mapSylesController.$inject = ["$scope", "$element", "$attrs", "$translate", "mapService", "UserProvider"]; | ||
function mapSylesController($scope, $element, $attrs, $translate, mapService) { | ||
function mapSylesController($scope, $element, $attrs, $translate, mapService, UserProvider) { | ||
@@ -66,2 +66,8 @@ var vm = this; | ||
// remove this if PCM_GT gets the other styles | ||
const dataVersion = UserProvider.getUser().dataVersion; | ||
if (dataVersion === "PCM_GT") { | ||
mapStyles = mapStyles.filter(style => ['satellite_only', 'transportation'].includes(style.style)); | ||
} | ||
function filterStyles() { | ||
@@ -68,0 +74,0 @@ if ($attrs && $attrs.exclude) { |
{ | ||
"name": "@trimblemaps/webtools-common", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
4274151
72668