2010-06-30 2 views
0

다음 코드는 있습니다.openlayers/cloudmade를 사용하여 변수에 간단한 링크를 추가하려면 어떻게해야합니까?

<script type="text/javascript" src="http://tile.cloudmade.com/wml/latest/web-maps-lite.js"></script> 
    <script type="text/javascript"> 

    var cloudmade = new CM.Tiles.CloudMade.Web({key: '1b67988f99f947e3bd06fbcf924aeda1', styleId:19933}); 
    var map = new CM.Map('mapa', cloudmade); 
    map.setCenter(new CM.LatLng(-24.900, -83.000), 4); 

    var bottomRight = new CM.ControlPosition(CM.BOTTOM_RIGHT, new CM.Size(50, 20)); 
    map.addControl(new CM.SmallMapControl(), bottomRight); 

    var CloudMadeIcon = new CM.Icon(); 
    CloudMadeIcon.image = "http://remidia.com.br/autopauta/wp-content/uploads/2010/marcador.gif"; 
    CloudMadeIcon.iconSize = new CM.Size(10, 10); 


    var areiaGrande = new CM.LatLng(-9.253,-41.108); 
    var areiaMarker = new CM.Marker (areiaGrande, { 
    title: "Areia Grande (Casa Nova/BA)", 
    icon: CloudMadeIcon, clickable:true, 

    }); 



    map.addOverlay(areiaMarker); 




    </script> 
내가 링크를 추가 할 수있는 방법

다음 "areiaMarker"변수 (예 HREF "http://www.areia.com을")?

답변

관련 문제