예제 #1
0
        private void openPopup(IMapControl page, PlanItemPopupModel popupModel, bool downside = false)
        {
            var popupContent = new PlanItemPopup(page);

            popupContent.SetModel(popupModel);
            openedPopupLayers.Add(popupContent);
            AddControlToMap(popupContent, popupModel.Stop.Coordinate, new Point(0.5, downside ? 0 : 1));
        }
예제 #2
0
        private void openPopup(MapPage page, PlanItemPopupModel popupModel, bool downside = false)
        {
            var popupContent = new PlanItemPopup();

            popupContent.SetModel(popupModel);
            MapLayer popupLayer = new MapLayer();

            popupLayer.Add(new MapOverlay()
            {
                GeoCoordinate  = Convert(popupModel.Stop.Coordinate),
                PositionOrigin = new Point(0.5, downside ? 0 : 1),
                Content        = popupContent
            });
            openedPopupLayers.Add(popupLayer);
            page.Map.Layers.Add(popupLayer);
        }