Here is some of my codes

addLoadEvent(loadMap);
addLoadEvent(addPoints);

function loadMap() {
        map = new GMap2(document.getElementById("map"));
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng( 39.96532942394258, 32.81399488449097),
17);
        map.setMapType(G_MAP_MAP);

        icon = new GIcon(G_DEFAULT_ICON);
        icon.image = 'http://maps.google.com/mapfiles/kml/pal2/icon2.png';
        icon.shadow = 'http://maps.google.com/mapfiles/kml/pal2/icon2s.png';
        icon.iconSize = new GSize(25, 24);
        icon.shadowSize = new GSize(37, 34);
        icon.iconAnchor = new GPoint(9, 34);
        icon.infoWindowAnchor = new GPoint(9, 2);
        icon.infoShadowAnchor = new GPoint(18, 25);

        iconilk = new GIcon();
        iconilk.image = 'http://yenimahalle.meb.gov.tr/image/icon1.png';
        iconilk.shadow = 'http://yenimahalle.meb.gov.tr/image/shadow-
icon1.png';
        iconilk.iconSize = new GSize(25, 24);
        iconilk.shadowSize = new GSize(37, 34);
        iconilk.iconAnchor = new GPoint(9, 34);
        iconilk.infoWindowAnchor = new GPoint(9, 2);
        iconilk.infoShadowAnchor = new GPoint(18, 25);

        icon2 = new GIcon();
        icon2.image = 'http://yenimahalle.meb.gov.tr/image/icon1lise.png';
        icon2.shadow = 'http://yenimahalle.meb.gov.tr/image/shadow-
icon1.png';
        icon2.iconSize = new GSize(25, 24);
        icon2.shadowSize = new GSize(50, 45);
        icon2.iconAnchor = new GPoint(9, 34);
        icon2.infoWindowAnchor = new GPoint(9, 2);
        icon2.infoShadowAnchor = new GPoint(18, 25);

        icon3 = new GIcon();
        icon3.image = 'http://yenimahalle.meb.gov.tr/image/ilceicon.png';
        icon3.shadow = 'http://yenimahalle.meb.gov.tr/image/shadow-
ilceicon.png';
        icon3.iconSize = new GSize(34, 32);
        icon3.shadowSize = new GSize(50, 45);
        icon3.iconAnchor = new GPoint(9, 34);
        icon3.infoWindowAnchor = new GPoint(9, 2);
        icon3.infoShadowAnchor = new GPoint(18, 25);

        icon4 = new GIcon();
        icon4.image = 'http://yenimahalle.meb.gov.tr/image/anaicon1.png';
        icon4.shadow = 'http://yenimahalle.meb.gov.tr/image/shadow-
ilceicon.png';
        icon4.iconSize = new GSize(25, 24);
        icon4.shadowSize = new GSize(50, 45);
        icon4.iconAnchor = new GPoint(9, 34);
        icon4.infoWindowAnchor = new GPoint(9, 2);
        icon4.infoShadowAnchor = new GPoint(18, 25);
}

function addPoints() {

        newpoints[0] = new Array(39.96516496500804, 32.814322113990784,
icon3, 'yenimahalleilcemd.lugu', 'Yenimahalle İlçe Milli Eğitim
Müdürlüğü    Ragıp Tüzün Caddesi 5.Durak Damladol Sokak No :133 <br /
><br /> Telefonlar: 0 312 315 39 55  -<br />  0 312 344 80 23 - <br /
>  0 312 344 53 87  <br />');
        newpoints[1] = new Array(39.96532942394258, 32.81498193740845, icon1,
'barbaros', 'Barbaros İlköğretim Okulu<br />M.NAZIM BEY SOKAK 133/A
YENİMAHALLE<br /><br />TELEFON 0312 315 35 52 ');
        newpoints[2] = new Array(39.964400225765516, 32.81849026679993,
icon1, 'ataturkilkogretim', 'Atatürk İlköğretim Okulu<br />25 Mart
Mahallesi Yenimahalle/ANKARA<br />Tel: 3123873286 ');
        newpoints[3] = new Array(39.96351213074899, 32.81891942024231, icon2,
'yahyakemal', 'Yahya Kemal Beyatlı Lisesi<br />YAHYA KEMAL CAD.NO:22
YENİMAHALLE/ANKARA<br /><br />TELEFON 03123153728 ');
        newpoints[4] = new Array(39.958832995217484, 32.81609773635864,
icon1, 'gaziosman', 'GAZİ OSMAN PAŞA İLKÖĞRETİM OKULU<br />İVEDİK
CADDESİ GÜLDEREN SOKAK NO:17 YENİMAHALLE/ANKARA TELEFON:312 315 45 92
');
        there are 138 set points but I can't see any of them with icons

On 17 Kasım, 19:58, "warden [Andrew Leach - Maps API Guru]"
<[EMAIL PROTECTED]> wrote:
> Howeverhttp://yenimahalle.meb.gov.tr/harita1.htmldoes exist, and you
> are indeed using v1 map-type names. Did you actually check that?
>   map.setMapType(G_MAP_TYPE);
> You need to correct those to v2 names (like G_NORMAL_MAP) -- although
> since the normal map is the default view anyway, there may be no point
> in setting it.
>
> Why the other thread?
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to