HomeWinBuzzer NewsMicrosoft Enriches Its Map APIs with External Element Support for Pushpins and...

Microsoft Enriches Its Map APIs with External Element Support for Pushpins and More


continues to add more and more customization options for its Windows 10 Maps API which can be used by developers to enrich their Windows UWP apps with custom maps.

As Microsoft writes in its introductory blog-post, pushpins “provide you with a tool to draw your user's attention to interesting visual patterns.”

microsoft maps api pushpins official

They can be used “to indicate a ´You Are Here´ in your app, or to build a symbol legend of interesting nearby attractions, much like a mall directory. To add one to a map, you just need a geopoint and a title.”

Pushpins come with a default image but they can also be customized with a unique image and connected with a line by editing the MapPolyline class in the Map code. With that feature areas can be highlighted and colored and using a map children collection.

The MapPolyline feature does not depend on pushpins, which means it can also be used to draw shapes onto a map.

As Microsoft points out its map API also supports XAML elements for map children collections, which allows for interactive maps, placing buttons, text, links etc anywhere on the map.

XAML, the Extensible Application Markup Language, is an XML based language developed by Microsoft which is typically used in .NET Framework applications.

The use of XAML elements on maps can be a very powerful feature, when used in a smart way but on the downside they also compromise performance which means they should be used not extensively.

microsoft maps api xaml elements official

Microsoft says that offering “full control of how maps are rendered has even encouraged some developers to use the MapControl for purposes other than actual mapping, such as recreating the map-based board game Risk. One innovative developer even used the Kinect to scan a 3D model of his own head which he could then place anywhere in the world—sort of like a transportable Mount Rushmore.”

Markus Kasanmascheff
Markus Kasanmascheff
Markus is the founder of WinBuzzer and has been playing with Windows and technology for more than 25 years. He is holding a Master´s degree in International Economics and previously worked as Lead Windows Expert for Softonic.com.

Recent News