2016-12-16 63 views
1

我如何着手將Mapzen集成到Angular-2應用程序中。Angular-2 Mapzen集成

他們的教程有以下代碼。我將如何在Angular應用程序中實現這一點?

<head> 
    <meta charset="utf-8"/> 
    <meta name="viewport" content="width=device-width, initial-scale=1"/> 
    <link rel="stylesheet" href="https://mapzen.com/js/mapzen.css"> 
    <script src="https://mapzen.com/js/mapzen.min.js"></script> 

    <style> 
     #map { 
     height: 100%; 
     width: 100%; 
     position: absolute; 
     } 
    html,body{margin: 0; padding: 0} 
    </style> 

    </head> 
    <body> 
    <div id='map'></div> 
    <script> 
     var map = L.Mapzen.map('map', { 
     center: [47.61033,-122.31801], 
     zoom: 16, 
     scene: L.Mapzen.BasemapStyles.BubbleWrap 
     }); 
    </script> 
    </body> 

回答