Tip Of The Day #123 - Bing Maps Aerial-Labels Mode

Salı, 11 Mayıs 2010 15:04 by ikivanc
There are several map view modes on Silverlight Bing Maps as 2D projection of the Earth. Road, Aerial or AerialWithLabels modes.

In Aerial with Label mode we are able to see landform and also roads, street names and place names on the map. 

we can define Aerial with Labels Map Mode in XAML code with "Mode" Property

<Microsoft_Maps_MapControl:Map Mode="Aerial" x:Name="MapIK" Center="41,29" ZoomLevel="10"/>

or define dynamicly in C#

In code side we can display Labels on AerialMode with boolean value in it.

MapIK.Mode = new AerialMode(true);


All the best

Tip Of The Day #122 - Bing Maps Aerial Mode

Salı, 11 Mayıs 2010 14:51 by ikivanc
There are several map view modes on Silverlight Bing Maps as 2D projection of the Earth. Road, Aerial or AerialWithLabels modes.

In Aerial mode we are only able to see landform on the map, there are no roads, street names and place names. 

we can define Map Mode in XAML code with "Mode" Property

<Microsoft_Maps_MapControl:Map Mode="Aerial" x:Name="MapIK" Center="41,29" ZoomLevel="10"/>

or define dynamicly in C#

MapIK.Mode = new AerialMode();

 
 
All the best

Tip Of The Day #121 - Bing Maps Road Mode

Salı, 11 Mayıs 2010 14:41 by ikivanc
There are several map view modes on Silverlight Bing Maps as 2D projection of the Earth. Road, Aerial or AerialWithLabels modes.

In Road mode we are only able to see roads, street names and places, there is no landform on the map. 

We can define Map Road Mode in XAML code with "Mode" Property

<Microsoft_Maps_MapControl:Map Mode="Road" x:Name="MapIK" Center="41,29" ZoomLevel="10"/>

or define dynamicly in C#

MapIK.Mode = new RoadMode();


All the best

Tip Of The Day #120 - Bing Maps Zoom Level

Salı, 11 Mayıs 2010 13:27 by ikivanc
In Silverlight Bing Maps we can define level of zoom to our location center between 1 to 19 values. "Zoom Level 19" is closest level and "Zoom Level 1" is the farthest level to the earth.

we can define zoom level in XAML code with ZoomLevel Property

<Microsoft_Maps_MapControl:Map x:Name="MapIK" ZoomLevel="10"/>

or define dynamicly in C#

MapIK.ZoomLevel = 19;


Zoom Level = 4


Zoom Level = 10


Zoom Level = 16


Zoom Level = 19

All the best.

Tip Of The Day #119 - Bing Maps Custom Map View

Salı, 11 Mayıs 2010 12:56 by ikivanc
In Silverlight Bing Maps application, we can set our map view to any location on the world with changing by Location coordinate; Latitude and Longtitude values.

Set Location for Istanbul in XAML
we can set Center property in Map Control with center point of the map by the location coordinate

<Microsoft_Maps_MapControl:Map x:Name="MapIK" Center="41,29" ZoomLevel="10"/>


We can set this location dynamicly C# code

First we should add using Microsoft.Maps.MapControl reference.

Location Istanbul = new Location(41, 29);
MapIK.Center = Istanbul;
MapIK.ZoomLevel = 8;



All the best.

Tip Of The Day #118 - Bing Maps Create Key

Salı, 11 Mayıs 2010 12:01 by ikivanc
After Adding Bing Maps Control in Silverlight application it requires a Bing Maps Key for using it and this requirement message appears on center of the map.


To get a Bing Maps Key; you need create a Bing Maps Developer Account from Bing Maps Portal and generate a key with your account at https://www.bingmapsportal.com.


Taking a key requires your application name and application url, after clicking "Create Key" you can get a key. Now we can use this key in our silverlight application with in CredentialsProvider="Your Key is here" property.

All the Best.

Tip Of The Day #117 - Adding Bing Maps References

Pazartesi, 10 Mayıs 2010 15:00 by ikivanc
In this tip we will see how to add bing maps control to our silverlight web application. After downloading and installing Bing Maps SDK on our computer, we can add references from "C:\Program Files\Bing Maps Silverlight Control\V1\Libraries" folder path to our Silverlight Application.

Now Open silverlight application in VS2010 or Expression Blend 4, Right-Click on the Silverlight Application, Click Add Reference then open dialog below appears then select DLLs from their path.


After adding this DLLs ,now open this project in Expression Blend then from Asset Library we can see our Map Control. Drag&Drop it to our silverlight page.

 
As you see we added a map control to our project.

XAML code
<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Microsoft_Maps_MapControl="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl" x:Class="SilverlightBingMaps.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
 
  <Grid x:Name="LayoutRoot" Background="White">
 
    <Microsoft_Maps_MapControl:Map Margin="8,30,37,47"/>
 
  </Grid>
</UserControl>


As you see we only added references to project, with this we can easily add a Bing Map control to a Silverlight web application and develop rich silverlight applications.

All the best

Tip Of The Day #116 - Bing Maps Silverlight Control

Pazartesi, 10 Mayıs 2010 12:59 by ikivanc
We can use Bing Maps to see any location in the world. Bing Maps is like Google Maps you can see every part of the world with zoom in. There is a control sdk for this Bing Map to use in Silverlight Applications easily. This control provides a great user exprience with Silverlight Deep Zoom when you zoom-in and zoom-out.


You can download binary references and SDK from here and access interactive online sdk from here.

All the best.

"Püf Noktası" series now Tip Of The Day ;)

Pazartesi, 10 Mayıs 2010 12:37 by ikivanc
Hello everyone,

with this blog entry i'm starting to post my other tips of the day in English! I changed my Turkish "Püf Noktası" series to "Tip of the Day" ;)


It will be more global for foreign people who wants to learn silverlight from my blog entries.

As you know we are Imagine Cup Turkey Winners as BabyRC Team so posting in English will be practice for me to improve my English Skills to IC World Finals at Poland.

Now let's start :)

BabyRC ile Imagine Cup 2010 Türkiye 1.si Olduk!

Çarşamba, 5 Mayıs 2010 14:37 by ikivanc
Imagine Cup Yazılım Tasarımı Kategorisinde BabyRC projemiz ile Türkiye 1. Olduk. Öncelikli olarak Yasemin'e, Fatih'e ve Burak'e teşekkür ederim.Ama insanın ailesinden aldığı destek gibisi de yok, hergün sabırla projede bugün bunu yaptık, bugün toplandık şeklinde dinleye dinleye bi hal oldular. Mete Hocamın ve bölüm hocalarımın tahammül ve destekleri için de apayrı teşekkürler..




Imagine Cup Sürecini sonunda başarı ile bitirdik ve gerçekten çok çalıştık. Bu projenin okulumda bitirme projem olmasından dolayı da tatilsiz gecemi gündüzümü bu projeye harcadım, şahitlerim var :) Project365'e baktığımda ya evdeyim ya da proje başında :) Ama değdi.. Aslında itiraf etmem gerekirse Project365'e başlama sebebim Imagine Cup'ta başarı elde edersem bu süreci canlı bir günlük olarak aktarmaktı ve bu gizli amacımı yerine getirdiğim için çok mutluyum :)


Erciyes Üniversitesine Imagine Cup'ta bir birincilik daha getirmek gerçekten beni ayrı bir onore etti çünkü benden önce 2 sene üst üste 1.lik, 2.lik ve pek çok derece yaşandı. Erciyes'i üniversite tercihinde yazmamdaki en büyük sebep Imagine Cup'taki başarılarıydı ve bu yüzden ilk sıraya yazmıştım:) Bölüm hocamız Rıfat Kurban, sevdiğim abilerim Burak Sarıca, Bekir Özpozan ve Mehmet İkbal Karlı'nın bu okula gelmemdeki katkıları büyüktü ve normal vakitlerde de tecrübelerini, yaşadıkları bu güzel atmosferi her fırsatta dinlemeye çalıştım kendilerinden. Onlara da sabırla anlattıkları için çok teşekkür ederim. Ev arkadaşım Osman Umut Özgür de 2008 Türkiye 2.si olan Handan Kirişçi, Hayriye Hisar, Mehmet Özkaya ile aynı ekip içerisindeydi ve ev arkadaşı olarak yanına çıktığım ilk gün 2. lik ödülünü gösterip bunun yanına 1.'lik ödülü getirmezsen bu evde işin yok deyince başarı kaçınılmaz oldu :P

Hem etrafımda bu kadar başarılı insanın olması hem de 2 sene üst üste Imagine Cup'a katılarak Yarı Final'e kalmanın verdiği tecrübe sanırım bu başarının tesadüf olmadığının kanıtı sanırım.


 
Bu süreçte gecem gündüzüm Silverlight ile geçti ama değdi, artık silverlight'ı sanırım yaladım ve yuttum :) + Liseden beri uğraştığım tasarım becerilerimi de bu proje ile bir adım daha ileriye götürdüm, Bu silverlight projesi ile hem kod hem de tasarım olarak çok ama çok şey edindim.. İlk defa bu kadar büyük bir silverlight projesi ile çalıştım ve tasarım konsepti oluşturmak, bunu gerçekleştirip birleştirmek gerçekten kolay olmadı. Sanırım sonraki günlerde, kullanıcı deneyimi ve tasarım konsepti üzerine mükemmel bir yazı yayınlayacağım ;)

O kadar şanslıyım ki, bu başarıda benden daha fazla sevinen dostlarım var yanımda gerçekten çok mutlu ettiler beni, hepsine canı gönülden teşekkür ediyorum tekrardan.



Bu yazı seri şeklinde gelir ;)