ThinkGeo.com    |     Documentation    |     Premium Support

ScaleBarAdornmentLayer on map view

Hello,
I’m new trying ThinkGeo Map Suite for mobile and I can’t create an Scale Bar on my Map View.
This is what I’m doing:

ScaleBarAdornmentLayer scaleBarLayer = new ScaleBarAdornmentLayer();
scaleBarLayer.Location = AdornmentLocation.LowerCenter;
scaleBarLayer.IsVisible = true;
scaleBarLayer.UnitFamily = UnitSystem.Metric;

_mapView.AdornmentOverlay.Layers.Add("ScaleBar", scaleBarLayer);
_mapView.Refresh();

what am I doing wrong?
Thanks.

Hi Carlos,

Attached is a scale bar demo, this sample should be helpful to let you know how to use ScaleBarAdornmentLayer on Android.

If you want to get more details, please read our wiki http://wiki.thinkgeo.com/wiki/thinkgeo.mapsuite.portablecore.scalebarprinterlayer.

If the sample still cannot solve your problem, please give us more detailed information about your requirement.

ScaleBarAdornmentDemo.zip (1.7 MB)

Thanks,

Thanks Don, this was really helpful.

Hi Carlos,

I am glad to hear that works.

Regards,

Don