Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Has anyone used ESRI MapObjects?

Status
Not open for further replies.

chpicker

Programmer
Apr 10, 2001
1,316
Ok, I tried posting this question on the ESRI MapObjects Developer's Connection forum, and no one answered me...so I thought I'd see if anyone here had any clues. This is specific to the MapObjects Map class.

There are 2 events which are supposed to fire when the trackinglayer of the map is drawn. One is beforetrackinglayerdraw, the other is (surprise!) aftertrackinglayerdraw. The problem is that it only seems to actually fire when the layer is moved or revealed. It does NOT fire when you add or remove GeoEvents, or even if you clear the layer completely. I use this layer to track vehicle locations, and it updates their positions every 10 seconds. In the AfterDraw event I have the program adding text labels to the vehicles...but it only fires if I pan the map or move a window that was partially covering it. The obvious solution of manually calling the AfterDraw event doesn't work because the method used to draw the text labels generates an error if you try to use it anywhere that isn't a direct response to a drawing event. Basically, the labels disappear whenever the timer event fires to update the GeoEvents. They don't come back unless I move the map.

Any suggestions?
 
Oh yeah, one more thing...the events ALSO does not fire when the form is first created. *shrugs*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top