Püf Noktası #128 - Bing Maps Pin Rengi Değiştirme

Cumartesi, 12 Haziran 2010 05:37 by ikivanc
Silverlight Bing Maps'te Blend içerisinde XAML kodlar arasına eklediğimi pushpin'in rengini değiştirebiliriz.

Bunun için eklediğimiz pushpin'i tıklayıp daha sonra sağ taraftan background rengini değiştirerek farklı renkte pushpin elde edebiliriz.


XAML Kodu
<Microsoft_Maps_MapControl:Pushpin Location="41,29" Background="#FF000000" />

Gördüğümüz gibi farklı renklerde pushpinleri bu şekilde elde etmemiz mümkün.

Kolay gelsin.

Püf Noktası #127 - Bing Maps Pin Ekleme

Pazartesi, 7 Haziran 2010 16:00 by ikivanc
Silverlight Bing Maps'te haritanın üzerine bir noktayı belirtmek için pinler ekleyebiliriz. Bunların ismi Bing Maps'te Push pinlerdir.


bunu kod ile hem XAML hem de C# ile gerçekleştirmemiz mümkündür;

XAML
<Microsoft_Maps_MapControl:Map Mode="Aerial" x:Name="MapIK" 
Center="41,29" ZoomLevel="10" ScaleVisibility="Collapsed">
  <Microsoft_Maps_MapControl:Pushpin Location="41,29" />
</Microsoft_Maps_MapControl:Map>

C#
Pushpin Push_Pin = new Pushpin();
Push_Pin.Location = new Location(42, 29);
MapIK.Children.Add(Push_Pin);

Bu sayede haritamıza istediğimiz koordinatına rahatlıkla bir pushpin ekleyebiliriz..

Kolay gelsin.

Püf Noktası #126 - Bing Maps Ölçek

Pazar, 6 Haziran 2010 10:14 by ikivanc
Silverlight Bing Maps'te default olarak gelen ölçek'i istediğimiz takdirde gizleyebiliriz.

Bunun için Haritanın ScaleVisibility seçeneğini değiştirmemiz yeterli olacaktır. Default olarak visible gelmektedir.


Logoyu gizlemek için ScaleVisibility seçeneğinin Collapsed olması yeterli olacaktır.


bunu kod ile hem XAML hem de C# ile gerçekleştirmemiz mümkündür;

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

C#
MapIK.ScaleVisibility = Visibility.Collapsed;

Bu sayede haritamızın ölçeğini haritadan kaldırmış olduk.

Kolay gelsin.

Püf Noktası #125 - Bing Maps Logo

Cumartesi, 5 Haziran 2010 04:58 by ikivanc
Silverlight Bing Maps'te default olarak gelen logoyu istediğimiz takdirde gizleyebiliriz.

Bunun için Haritanın LogoVisibility seçeneğini değiştirmemiz yeterli olacaktır. Default olarak visible gelmektedir.


Logoyu gizlemek için LogoVisibility seçeneğinin Collapsed olması yeterli olacaktır.


bunu kod ile hem XAML hem de C# ile gerçekleştirmemiz mümkündür;

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

C#
MapIK.LogoVisibility = Visibility.Collapsed;

Bu sayede logomuzu haritadan kaldırmış olduk.

Kolay gelsin.

Püf Noktası #124 - Bing Maps Navigasyon Aracı

Cuma, 4 Haziran 2010 13:31 by ikivanc
Silverlight Bing Maps'te otomatik olarak gelen navigasyon menüsünde değişliklerde bulunabiliriz. Haritada zoom yapma ve hareket etmek için kullanılan navigasyon aracını istediğimiz takdirde harita üzerinde gösterip-gizleyebiliriz. 

Bunun için Blend içerisinde NavigationVisibility seçeneği mevcuttur ve bu seçeneği "Visible" yaparak harita üzerinde navigasyon aracını gösterebilir


MapIK.NavigationVisibility = Visibility.Visible;

veya "Collapsed" seçeneğini seçerek harita üzerinden gizleyebiliriz



bunu kod ile hem XAML hem de C# ile gerçekleştirmemiz mümkündür;

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

C#
MapIK.NavigationVisibility = Visibility.Collapsed;

Bu sayede ister Bing Maps'in standart navigasyon aracını kullanır, istersek de kendi oluşturduğumuz özel bir navigasyon aracını projemizde gösterebiliriz.

Kolay gelsin

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.