1'use strict'; 2 3app.service("MapsService", function ($http, $rootScope, GOOGLEMAPS_CONFIG) { 4 5 const getMapByLatLngQuery = (lat, lng) => { 6 return $http.get(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${lat}, ${lng}&key=${GOOGLEMAPS_CONFIG}`); 7 }; 8 9 // FOR MAP STYLES THROUGHOUT 10 $rootScope.mapStyles = 11 [ 12 { elementType: 'geometry', stylers: [{ color: '#242f3e' }] }, 13 { elementType: 'labels.text.stroke', stylers: [{ color: '#242f3e' }] }, 14 { elementType: 'labels.text.fill', stylers: [{ color: '#746855' }] }, 15 { 16 featureType: 'administrative.locality', 17 elementType: 'labels.text.fill', 18 stylers: [{ color: '#d59563' }] 19 }, 20 { 21 featureType: 'poi', 22 elementType: 'labels.text.fill', 23 stylers: [{ color: '#d59563' }] 24 }, 25 { 26 featureType: 'poi.park', 27 elementType: 'geometry', 28 stylers: [{ color: '#263c3f' }] 29 }, 30 { 31 featureType: 'poi.park', 32 elementType: 'labels.text.fill', 33 stylers: [{ color: '#6b9a76' }] 34 }, 35 { 36 featureType: 'road', 37 elementType: 'geometry', 38 stylers: [{ color: '#38414e' }] 39 }, 40 { 41 featureType: 'road', 42 elementType: 'geometry.stroke', 43 stylers: [{ color: '#212a37' }] 44 }, 45 { 46 featureType: 'road', 47 elementType: 'labels.text.fill', 48 stylers: [{ color: '#9ca5b3' }] 49 }, 50 { 51 featureType: 'road.highway', 52 elementType: 'geometry', 53 stylers: [{ color: '#746855' }] 54 }, 55 { 56 featureType: 'road.highway', 57 elementType: 'geometry.stroke', 58 stylers: [{ color: '#1f2835' }] 59 }, 60 { 61 featureType: 'road.highway', 62 elementType: 'labels.text.fill', 63 stylers: [{ color: '#f3d19c' }] 64 }, 65 { 66 featureType: 'transit', 67 elementType: 'geometry', 68 stylers: [{ color: '#2f3948' }] 69 }, 70 { 71 featureType: 'transit.station', 72 elementType: 'labels.text.fill', 73 stylers: [{ color: '#d59563' }] 74 }, 75 { 76 featureType: 'water', 77 elementType: 'geometry', 78 stylers: [{ color: '#17263c' }] 79 }, 80 { 81 featureType: 'water', 82 elementType: 'labels.text.fill', 83 stylers: [{ color: '#515c6d' }] 84 }, 85 { 86 featureType: 'water', 87 elementType: 'labels.text.stroke', 88 stylers: [{ color: '#17263c' }] 89 } 90 ]; 91 92 return { getMapByLatLngQuery }; 93});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.