I am building a large facility map that will show facility equipment using a RadMap with bitmaps to portray equipment (computers, printers, etc). MapPinPoint seems to be the best approach to this. I can successfully add a MapPinPoint to a RadMap with code like this:
Uri uri = new Uri("/Printer.jpg", UriKind.Relative);
MapPinPoint newMapPoint = new MapPinPoint();
newMapPoint.ImageSource = new BitmapImage(uri);
newMapPoint.Text = "Test";
MapLayer.SetLocation(newMapPoint, new Location(19.70240, -154.08088));
informationLayer.Items.Add(newMapPoint);
This displays the image MapPinPoint with the correct image but introduces a zoom issue. When I zoom in/out, I need the MapPinPoint to keep its scale. If I zoom in, the image should get larger and I zoom out the image should get smaller.
How do I accomplish this? Or, is there a better approach to add image items on the map on the fly and have them scale with zooms?
Thanks.
Uri uri = new Uri("/Printer.jpg", UriKind.Relative);
MapPinPoint newMapPoint = new MapPinPoint();
newMapPoint.ImageSource = new BitmapImage(uri);
newMapPoint.Text = "Test";
MapLayer.SetLocation(newMapPoint, new Location(19.70240, -154.08088));
informationLayer.Items.Add(newMapPoint);
This displays the image MapPinPoint with the correct image but introduces a zoom issue. When I zoom in/out, I need the MapPinPoint to keep its scale. If I zoom in, the image should get larger and I zoom out the image should get smaller.
How do I accomplish this? Or, is there a better approach to add image items on the map on the fly and have them scale with zooms?
Thanks.