public ProjectMapViewData(Person currentPerson, Models.FirmaPage firmaPage, ProjectLocationsMapInitJson projectLocationsMapInitJson, ProjectLocationsMapViewData projectLocationsMapViewData, Dictionary <ProjectLocationFilterTypeSimple, IEnumerable <SelectListItem> > projectLocationFilterTypesAndValues, string projectLocationsUrl, string filteredProjectsWithLocationAreasUrl, List <ProjectMapLocationJson> projectMapLocationJsons) : base(currentPerson, firmaPage) { PageTitle = $"{Models.FieldDefinition.Project.GetFieldDefinitionLabel()} Map"; ProjectLocationsMapInitJson = projectLocationsMapInitJson; ProjectLocationFilterTypesAndValues = projectLocationFilterTypesAndValues; ProjectLocationsMapViewData = projectLocationsMapViewData; ProjectLocationsUrl = projectLocationsUrl; FilteredProjectsWithLocationAreasUrl = filteredProjectsWithLocationAreasUrl; ProjectMapViewDataForAngular = new ProjectMapViewDataForAngular(projectLocationsMapInitJson, projectLocationsMapInitJson.ProjectLocationsLayerGeoJson, projectMapLocationJsons); }
public ProjectMapViewData(Person currentPerson, Models.FirmaPage firmaPage, ProjectLocationsMapInitJson projectLocationsMapInitJson, ProjectLocationsMapViewData projectLocationsMapViewData, Dictionary <ProjectLocationFilterTypeSimple, IEnumerable <SelectListItem> > projectLocationFilterTypesAndValues, string projectLocationsUrl, string filteredProjectsWithLocationAreasUrl, List <ProjectMapLocationJson> projectMapLocationJsons) : base(currentPerson, firmaPage) { PageTitle = $"{Models.FieldDefinition.Project.GetFieldDefinitionLabel()} Map"; ProjectLocationsMapInitJson = projectLocationsMapInitJson; ProjectLocationFilterTypesAndValues = projectLocationFilterTypesAndValues; ProjectLocationsMapViewData = projectLocationsMapViewData; ProjectLocationsUrl = projectLocationsUrl; FilteredProjectsWithLocationAreasUrl = filteredProjectsWithLocationAreasUrl; ProjectMapViewDataForAngular = new ProjectMapViewDataForAngular(projectLocationsMapInitJson, projectLocationsMapInitJson.ProjectLocationsLayerGeoJson, projectMapLocationJsons); GeocodeAddressUrl = SitkaRoute <ResultsController> .BuildAbsoluteUrlHttpsFromExpression(x => x.GeocodeAddress(null, null));; }