示例#1
0
		public MapPosition(MapPosition prototype, PositionUpdateIfc updateIfc)
		{
			this._llz = prototype._llz;
			this._style = prototype._style;
			this.valid = prototype.valid;
			this.updateIfc = updateIfc;
		}
示例#2
0
 public MapPosition(MapPosition prototype, PositionUpdateIfc updateIfc)
 {
     _llz           = prototype._llz;
     style          = prototype.style;
     valid          = prototype.valid;
     this.updateIfc = updateIfc;
 }
示例#3
0
		public MapPosition(LatLonZoom llz, string style, PositionUpdateIfc updateIfc)
		{
			this._llz = llz;
			this._style = style;
			this.valid = true;
			this.updateIfc = updateIfc;
		}
示例#4
0
 public MapPosition(LatLonZoom llz, string style, PositionUpdateIfc updateIfc)
 {
     _llz           = llz;
     this.style     = style;
     valid          = true;
     this.updateIfc = updateIfc;
 }
示例#5
0
        public MapPosition(MashupParseContext context, PositionUpdateIfc updateIfc, CoordinateSystemIfc coordSys)
        {
            this.updateIfc = updateIfc;
            if (context.version == MonolithicMapPositionsSchema.schema)
            {
                XMLTagReader xMLTagReader = context.NewTagReader("MapPosition");
                this._llz = new LatLonZoom(Convert.ToDouble(context.reader.GetAttribute("lat"), CultureInfo.InvariantCulture), Convert.ToDouble(context.reader.GetAttribute("lon"), CultureInfo.InvariantCulture), Convert.ToInt32(context.reader.GetAttribute("zoom"), CultureInfo.InvariantCulture));
                if (context.reader.GetAttribute("style") != null)
                {
                    this.setStyle(context.reader.GetAttribute("style"));
                }
                this.valid = true;
                while (xMLTagReader.FindNextStartTag())
                {
                }
                return;
            }
            XMLTagReader xMLTagReader2 = context.NewTagReader("MapPosition");

            if (context.reader.GetAttribute("style") != null)
            {
                this.setStyle(context.reader.GetAttribute("style"));
            }
            while (xMLTagReader2.FindNextStartTag())
            {
                if (xMLTagReader2.TagIs(LatLonZoom.GetXMLTag()))
                {
                    this._llz  = new LatLonZoom(context, coordSys);
                    this.valid = true;
                }
            }
            while (xMLTagReader2.FindNextStartTag())
            {
            }
        }
		public UIPositionManager(ViewerControl smViewer, ViewerControl veViewer)
		{
			this._smPos = new MapPosition(this);
			this._vePos = new MapPosition(this);
			smViewer.Initialize(new MapPositionDelegate(this.GetSMPos), "Source Map Position");
			veViewer.Initialize(new MapPositionDelegate(this.GetVEPos), "Virtual Earth Position");
			this.smUpdate = smViewer;
			this.veUpdate = veViewer;
			this.slaved = false;
		}
示例#7
0
 public UIPositionManager(ViewerControl smViewer, ViewerControl veViewer)
 {
     _smPos = new MapPosition(this);
     _vePos = new MapPosition(this);
     smViewer.Initialize(GetSMPos, "Source Map Position");
     veViewer.Initialize(GetVEPos, "Virtual Earth Position");
     smUpdate = smViewer;
     veUpdate = veViewer;
     slaved   = false;
 }
示例#8
0
 public UIPositionManager(ViewerControl smViewer, ViewerControl veViewer)
 {
     this._smPos = new MapPosition(this);
     this._vePos = new MapPosition(this);
     smViewer.Initialize(new MapPositionDelegate(this.GetSMPos), "Source Map Position");
     veViewer.Initialize(new MapPositionDelegate(this.GetVEPos), "Virtual Earth Position");
     this.smUpdate = smViewer;
     this.veUpdate = veViewer;
     this.slaved   = false;
 }
示例#9
0
		public MapPosition(PositionUpdateIfc updateIfc)
		{
			this.updateIfc = updateIfc;
		}
示例#10
0
		public MapPosition(MashupParseContext context, PositionUpdateIfc updateIfc, CoordinateSystemIfc coordSys)
		{
			this.updateIfc = updateIfc;
			if (context.version == MonolithicMapPositionsSchema.schema)
			{
				XMLTagReader xMLTagReader = context.NewTagReader("MapPosition");
				this._llz = new LatLonZoom(Convert.ToDouble(context.reader.GetAttribute("lat"), CultureInfo.InvariantCulture), Convert.ToDouble(context.reader.GetAttribute("lon"), CultureInfo.InvariantCulture), Convert.ToInt32(context.reader.GetAttribute("zoom"), CultureInfo.InvariantCulture));
				if (context.reader.GetAttribute("style") != null)
				{
					this.setStyle(context.reader.GetAttribute("style"));
				}
				this.valid = true;
				while (xMLTagReader.FindNextStartTag())
				{
				}
				return;
			}
			XMLTagReader xMLTagReader2 = context.NewTagReader("MapPosition");
			if (context.reader.GetAttribute("style") != null)
			{
				this.setStyle(context.reader.GetAttribute("style"));
			}
			while (xMLTagReader2.FindNextStartTag())
			{
				if (xMLTagReader2.TagIs(LatLonZoom.GetXMLTag()))
				{
					this._llz = new LatLonZoom(context, coordSys);
					this.valid = true;
				}
			}
			while (xMLTagReader2.FindNextStartTag())
			{
			}
		}
示例#11
0
 public MapPosition(PositionUpdateIfc updateIfc)
 {
     this.updateIfc = updateIfc;
 }