public EditProjectPriorityLandscapesViewDataForAngular(MapInitJson mapInitJson, List <Models.PriorityLandscape> priorityLandscapesInViewModel)
        {
            MapInitJson = mapInitJson;
            FindPriorityLandscapeByNameUrl = SitkaRoute <ProjectPriorityLandscapeController> .BuildUrlFromExpression(c => c.FindPriorityLandscapeByName(null));

            TypeAheadInputId                     = "priorityLandscapeSearch";
            PriorityLandscapeNameByID            = priorityLandscapesInViewModel.ToDictionary(x => x.PriorityLandscapeID, x => x.PriorityLandscapeName);
            PriorityLandscapeMapServiceLayerName = FirmaWebConfiguration.GetPriorityLandscapeWmsLayerName();
            MapServiceUrl = FirmaWebConfiguration.WebMapServiceUrl;
        }
Пример #2
0
 public static LayerGeoJson GetPriorityLandscapeWmsLayerGeoJson(string layerColor, decimal layerOpacity, LayerInitialVisibility layerInitialVisibility)
 {
     return(new LayerGeoJson("20-Year Plan for eastern WA", FirmaWebConfiguration.WebMapServiceUrl,
                             FirmaWebConfiguration.GetPriorityLandscapeWmsLayerName(), layerColor, layerOpacity,
                             layerInitialVisibility, "/Content/leaflet/images/washington_priority_landscape.png"));
 }