Find Control (Geocoding)

Quality Band - Preview
Status - In Use

About

findcontrol.png
The find control allows you to geocode an address using the Bing Maps Web Service. It shows a listbox of results and adds a layer to the map to show the results as you select them.

Usage

Bing Maps example:
XAML:
<UserControl x:Class="ExampleControlBing.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"
    xmlns:c="clr-namespace:DeepEarth.Client.Controls.CoordinatePanel.BingMaps;assembly=DeepEarth.Client.Controls.CoordinatePanel.BingMaps">
    <Grid x:Name="LayoutRoot" Background="White">
        <m:Map x:Name="map" CredentialsProvider="Your AppID here" />
        <f:FindControl x:Name="find" MapName="map" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="8,8,8,8" />
    </Grid>
</UserControl>


Reference:
  • DeepEarth.Client.Common.dll
  • DeepEarth.Client.Controls.Find.dll
  • Microsoft.Maps.MapControl.dll
  • Microsoft.Maps.MapControl.Common.dll

Full Blend support, simply add these DLLs, then the control appears in your toolbox, drop on the page. You must set the "MapName" to the x:Name of your map control. Feel free to override the template.

Developers

soulsolutions

Roadmap

Version Feature Date
0.1 Initial Architecture 16/11/2009

Last edited Nov 16, 2009 at 7:18 AM by soulsolutions, version 2

Comments

soulsolutions Nov 25, 2009 at 11:43 AM 
Maybe interesting to see how this works as an autocomplete style box after a configurable number of chars.