예제 #1
0
        protected override void OnGottenLayers(GottenLayersLayerPluginEventArgs e)
        {
            base.OnGottenLayers(e);
            foreach (var tobinBasFeatureLayer in e.Layers.OfType <TobinBasFeatureLayer>())
            {
                CompositeStyle compositeStyle = new CompositeStyle();
                compositeStyle.Name = tobinBasFeatureLayer.Name;
                AreaStyle areaStyle = AreaStyles.CreateSimpleAreaStyle(new GeoColor(0, GeoColor.SimpleColors.Black), new GeoColor(250, GeoColor.SimpleColors.Black), 1);
                areaStyle.Name = "Area Style";
                LineStyle lineStyle = LineStyles.CreateSimpleLineStyle(GeoColor.SimpleColors.Black, 0.5f, false);
                lineStyle.Name = "Line Style";
                PointStyle pointStyle = PointStyles.CreateSimplePointStyle(PointSymbolType.Circle, GeoColor.SimpleColors.Green, 3);
                pointStyle.Name = "Point Style";

                compositeStyle.Styles.Add(areaStyle);
                compositeStyle.Styles.Add(lineStyle);
                compositeStyle.Styles.Add(pointStyle);

                foreach (var zoomLevel in tobinBasFeatureLayer.ZoomLevelSet.CustomZoomLevels)
                {
                    zoomLevel.CustomStyles.Clear();
                    zoomLevel.CustomStyles.Add(compositeStyle);
                }
            }

            BuildIndexAdapter adapter = new TobinBasBuildIndexAdapter(this);

            adapter.BuildIndex(e.Layers.OfType <FeatureLayer>());
        }
        protected override void OnGottenLayers(GottenLayersLayerPluginEventArgs e)
        {
            base.OnGottenLayers(e);
            BuildIndexAdapter adapter = new ShapeFileBuildIndexAdapter(this);

            adapter.BuildIndex(e.Layers.OfType <FeatureLayer>());
        }
        protected override void OnGottenLayers(GottenLayersLayerPluginEventArgs e)
        {
            BuildIndexAdapter adapter = new KmlBuildIndexAdapter(this);

            adapter.BuildIndex(e.Layers.OfType <FeatureLayer>());
        }