Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Custom tile source example
Browse files Browse the repository at this point in the history
Example showing how a new tile source can be added to the map control.
  • Loading branch information
ltomuta committed May 30, 2013
1 parent 4709df7 commit f238b45
Show file tree
Hide file tree
Showing 20 changed files with 1,198 additions and 0 deletions.
279 changes: 279 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
#################
## Eclipse
#################

*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Rr]elease/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.vspscc
.builds
*.dotCover

## TODO: If you have NuGet Package Restore enabled, uncomment this
#packages/

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf

# Visual Studio profiler
*.psess
*.vsp

# ReSharper is a .NET coding add-in
_ReSharper*

# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish

# Others
[Bb]in
[Oo]bj
sql
TestResults
*.Cache
ClientBin
stylecop.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML



############
## Windows
############

# Windows image file caches
Thumbs.db

# Folder config file
Desktop.ini


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg

# Mac crap
.DS_Store

# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/
[Oo]bj/

# mstest test results
TestResults

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Rr]elease/
x64/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.log
*.vspscc
*.vssscc
.builds

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*

# Mindbench SASS cache
.sass-cache/

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish

# Publish Web Output
*.Publish.xml

# NuGet Packages Directory
packages

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql
TestResults
[Tt]est[Rr]esult*
*.Cache
ClientBin
[Ss]tyle[Cc]op.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf


38 changes: 38 additions & 0 deletions CustomTileSource/CustomTileSource.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomTileSource", "CustomTileSource\CustomTileSource.csproj", "{351710E9-5E82-4487-8D34-A38849956343}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{351710E9-5E82-4487-8D34-A38849956343}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{351710E9-5E82-4487-8D34-A38849956343}.Debug|Any CPU.Build.0 = Debug|Any CPU
{351710E9-5E82-4487-8D34-A38849956343}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{351710E9-5E82-4487-8D34-A38849956343}.Debug|ARM.ActiveCfg = Debug|ARM
{351710E9-5E82-4487-8D34-A38849956343}.Debug|ARM.Build.0 = Debug|ARM
{351710E9-5E82-4487-8D34-A38849956343}.Debug|ARM.Deploy.0 = Debug|ARM
{351710E9-5E82-4487-8D34-A38849956343}.Debug|x86.ActiveCfg = Debug|x86
{351710E9-5E82-4487-8D34-A38849956343}.Debug|x86.Build.0 = Debug|x86
{351710E9-5E82-4487-8D34-A38849956343}.Debug|x86.Deploy.0 = Debug|x86
{351710E9-5E82-4487-8D34-A38849956343}.Release|Any CPU.ActiveCfg = Release|Any CPU
{351710E9-5E82-4487-8D34-A38849956343}.Release|Any CPU.Build.0 = Release|Any CPU
{351710E9-5E82-4487-8D34-A38849956343}.Release|Any CPU.Deploy.0 = Release|Any CPU
{351710E9-5E82-4487-8D34-A38849956343}.Release|ARM.ActiveCfg = Release|ARM
{351710E9-5E82-4487-8D34-A38849956343}.Release|ARM.Build.0 = Release|ARM
{351710E9-5E82-4487-8D34-A38849956343}.Release|ARM.Deploy.0 = Release|ARM
{351710E9-5E82-4487-8D34-A38849956343}.Release|x86.ActiveCfg = Release|x86
{351710E9-5E82-4487-8D34-A38849956343}.Release|x86.Build.0 = Release|x86
{351710E9-5E82-4487-8D34-A38849956343}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
20 changes: 20 additions & 0 deletions CustomTileSource/CustomTileSource/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Application
x:Class="CustomTileSource.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone">

<!--Application Resources-->
<Application.Resources>
<local:LocalizedStrings xmlns:local="clr-namespace:CustomTileSource" x:Key="LocalizedStrings"/>
</Application.Resources>

<Application.ApplicationLifetimeObjects>
<!--Required object that handles lifetime events for the application-->
<shell:PhoneApplicationService
Launching="Application_Launching" Closing="Application_Closing"
Activated="Application_Activated" Deactivated="Application_Deactivated"/>
</Application.ApplicationLifetimeObjects>

</Application>
Loading

0 comments on commit f238b45

Please sign in to comment.