Microsoft Mapping: Geospatial Development with Bing Maps and C# (Expert's Voice in Microsoft)
Format: PDF / Kindle (mobi) / ePub
Geospatial mapping applications have become hugely popular in recent years. With smart-phone and tablet numbers snow-balling this trend looks set to continue well into the future. Indeed, it is true to say that in today’s mobile world location-aware apps are becoming the norm rather than the exception.
In Microsoft Mapping author Ray Rischpater showcases Microsoft's Bing Maps API and demonstrates how its integration features make it by far the strongest mapping candidate for business that are already using Windows 8 or the .NET Framework. Whether you want to build a new app from scratch of add a few modest geospatial features to your existing website Ray's carefully chosen examples will provide you with both the inspiration and the code you need to achieve your goals.
Architecture.Overview The SQL Database architecture is divided into four layers: the client layer, the service layer, the platform layer, and the infrastructure layer. Figure 3-2 shows these layers. 30 Chapter 3 ■ Geospatial with Azure SQL Database Figure 3-2. SQL Database Architecture consists of four layers: Client, Service, Platform and Infrastructure Layer The Client Layer The client layer can reside either on premise or on Azure. This is the layer that is closest to your application.
changes to the WCF Service, do not forget to update your service by right-clicking on the service reference and selecting Update Service Reference. 4. Modify the Program.cs file to call your service. Our program is quite simple. It will first request all the earthquakes in the database from the WCF service, and then request all the earthquakes within a bounding box from the service, see the code in Listing 4-6. You will need to include the service reference and then create an instance of
regions very well, which is why when you look at countries further north and south of the equator, they look bigger in area than they actually are. While the Earth is round, it’s not perfectly round: it’s a little squashed at the poles. To model the shape more exactly than using a sphere, geographers introduce the notion of the datum, a mathematical shape that more closely represents the Earth. To precisely position a point on the Earth, I should give you not just its latitude and longitude (and
final class you’ll likely want to know about is the MapItemsControl class, which represents a control to manage data binding. As with other data-binding controls, it has ItemsTemplate and ItemsSource properties to specify the binding relationship; you can bind the control to static lists or dynamic models, as we show you later in this chapter in our Earthquake example. Seeing the Bing.Maps Map Control in Action In the sections that follow, we show you how to start using the control, handle
more battery drain if you set too fine a radius, say twenty meters or less in most cases.) Once the Geolocator is configured, the code adds the event handler to the Geolocator, and tracking begins. To stop tracking, the Stop method just removes the event handler and releases the Geolocator object. The Geolocator class also has a second event, StatusChanged, which you can use to monitor the startup and teardown of the positioning interface, too. It happens pretty quickly, but if you want to show