getMapOptions: function() {
return {
zoom: this.getMapZoom(),
center: this.getMapCenter(),
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDefaultUI: !0,
zoomControl: !1,
scaleControl: !1,
panControl: !1,
styles: [{
featureType: "poi",
stylers: [{
visibility: "off"
}]
}, {
featureType: "administrative.locality",
stylers: [{
visibility: "off"
}]
}, {
featureType: "poi.park",
elementType: "geometry",
stylers: [{
visibility: "on"
}, {
color: "#f3f2f1"
}]
}, {
featureType: "poi.park",
elementType: "labels",
stylers: [{
visibility: "off"
}]
}, {
featureType: "landscape.natural",
stylers: [{
visibility: "on"
}, {
color: "#f3f2f1"
}]
}, {
featureType: "landscape",
elementType: "geometry.fill",
stylers: [{
color: "#f9f8f7"
}]
}, {
featureType: "water",
stylers: [{
hue: "#0091ff"
}, {
lightness: 23
}]
}, {
featureType: "road",
elementType: "geometry.fill",
stylers: [{
hue: "#ff9900"
}, {
saturation: -62
}, {
lightness: 57
}]
}, {
featureType: "road.highway",
elementType: "geometry.stroke",
stylers: [{
saturation: -57
}, {
lightness: 45
}]
}, {
featureType: "landscape.man_made",
elementType: "geometry.stroke",
stylers: [{
color: "#d1d4d6"
}]
}]
}
},
getUsers() {
return this.authHttp
.get(APP_SERVER + 'api/users')
.map((response: Response) => response.json());
}
constructor(svc: UserService) {
svc.getUsers().subscribe((response) => console.log(response));
}
{
bindToController: {
segments: '=',
type: '@',
onRemoveSegment: '&'
}
}
function removeSegment(segment, type) {
directiveController.onRemoveSegment({$someInformation: 'Segment ' + segment + ' removed'});
}
<directive on-remove-segment="$ctrl.segmentRemoved($someInformation)"></directive>
this.segmentRemoved = function($someInformation) {
console.log('Callback function ivoked with', $someInformation);
};