• JavaScript
  • HTML
                  
                  

                  
                
                  
                  
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes">
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    <meta name="description" content="Visualize Data from Interactive Map Layer on Map">
    <title>Interactive Map Layer</title>
    <link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.1/mapsjs-ui.css" />
    <script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
    <script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-mapevents.js"></script>
    <script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
    <script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
    <link rel="stylesheet" type="text/css" href="../template.css" />
    <link rel="stylesheet" type="text/css" href="demo.css" />
  <script>window.ENV_VARIABLE = 'developer.here.com'</script><script src='../iframeheight.js'></script></head>
  <body>
    <div class="page-header">
      <h1>Interactive Map Layer</h1>
      <p>Visualize Data from Interactive Map Layer on Map</p>
    </div>
    <p>This examples adds dashed lines showing the 2030 <b>Washington D.C.</b> Proposed Transit.</p>
    <div id="map"></div>
    <h3>Code</h3>
    <p>
      The example uses <code>H.service.iml.Service</code> 
      class to fetch data from Interactive Map Layer, and visualizes the data with customized style.</p>
    <script type="text/javascript" src='demo.js'></script>
  </body>
</html>