Select to view content in your preferred language

Map Tips Not Displaying and Cannot Change Scalebar Text Color

860
1
09-28-2010 04:17 PM
ZachEdwards
Deactivated User
Hello all, I am trying to get the MapTips control to work. I have all the code matching and know it's pulling from the right service and layer. It does nothing when I hover or click on the layer of interest. Could it have to do with the Geometry envelope in the C#?

            ESRI.ArcGIS.Client.Tasks.Query query = new ESRI.ArcGIS.Client.Tasks.Query()
            {
                Geometry = new ESRI.ArcGIS.Client.Geometry.Envelope(-180, 0, 0, 90)
            };

Also, I cannot seem to change the damn color of my scale bar text. I have a white background so  I'd like black or maroon text and cannot seem to find a simple way to do it. Any help would be much appreciated!
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
I am trying to get the MapTips control to work.


Is it a maptip issue or didn't you get any feature displayed?

Could it have to do with the Geometry envelope in the C#?

ESRI.ArcGIS.Client.Tasks.Query query = new ESRI.ArcGIS.Client.Tasks.Query()
{
Geometry = new ESRI.ArcGIS.Client.Geometry.Envelope(-180, 0, 0, 90)
};

Possibly a spatial reference issue. If your service or your map is using WebMercator coordinates, the envelope you gave is very small.


Also, I cannot seem to change the damn color of my scale bar text.

There is a 'TextColor' property which should do the job.
0 Kudos