File tree Expand file tree Collapse file tree 13 files changed +24
-12
lines changed
finding-the-nearest-marker/js
map-object-events-displayed
map-objects-event-delegation
map-with-pedestrian-route-from-a-to-b
map-with-route-from-a-to-b-using-public-transport
map-with-route-from-a-to-b
map-with-truck-route-from-a-to-b Expand file tree Collapse file tree 13 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 1515 < h1 > Take a Snapshot of the Map</ h1 >
1616 < p > < span > This example demonstrates how to take a snapshot of the map. It specifies area to be captured with top/left and bottom/right view port coordinates< br > </ span > </ p >
1717 < div id ="map " style ="width: 600px; height: 400px; background: grey "> </ div >
18+ < hr />
1819 < div id ="panel " style ="width: 600px; "> </ div >
1920 < script type ="text/javascript " src ='js/app.js '> </ script >
2021 </ body >
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ var resultContainer = document.getElementById('panel');
6060// Create container for the "Capture" button
6161var containerNode = document . createElement ( 'div' ) ;
6262containerNode . setAttribute ( 'style' ,
63- 'position:absolute;top:0 ;left:0 ;background-color:#fff; padding:10px;' ) ;
63+ 'position:absolute;top:115px ;left:620px ;background-color:#fff; padding:10px;' ) ;
6464containerNode . className = 'btn-group' ;
6565
6666// Create the "Capture" button
Original file line number Diff line number Diff line change 66 < meta name ="description " content ="Cluster multiple markers and customize the theme ">
77 < title > Marker Clustering with Custom Theme</ title >
88 < link rel ="stylesheet " type ="text/css " href ="https://js.api.here.com/v3/3.0/mapsjs-ui.css " />
9- < script type ="text/javascript " src ="https://code.jquery.com/jquery-2.2.3.min.js "> </ script >
9+ < script type ="text/javascript " src ="https://code.jquery.com/jquery-2.2.3.min.js "
10+ integrity ="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo= "
11+ crossorigin ="anonymous "> </ script >
1012 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-core.js "> </ script >
1113 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-service.js "> </ script >
1214 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-ui.js "> </ script >
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ var svgMarkup = '<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
7171 '<text x="12" y="18" font-size="12pt" font-family="Arial" font-weight="bold" ' +
7272 'text-anchor="middle" fill="white">${REPLACE}</text></svg>' ;
7373
74- $ . each ( coords , function ( index , value ) {
74+ coords . forEach ( function ( value , index ) {
7575 var myIcon = new H . map . Icon ( svgMarkup . replace ( '${REPLACE}' , index + 1 ) ) ,
7676 marker = new H . map . Marker ( value , { icon : myIcon } ) ;
7777 // add custom data to the marker
Original file line number Diff line number Diff line change 55 < meta http-equiv ="Content-type " content ="text/html;charset=UTF-8 ">
66 < meta name ="description " content ="Handle events on various map objects ">
77 < title > Map Objects Events</ title >
8+ < link rel ="stylesheet " type ="text/css " href ="css/log.css " />
89 < link rel ="stylesheet " type ="text/css " href ="https://js.api.here.com/v3/3.0/mapsjs-ui.css " />
910 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-core.js "> </ script >
1011 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-service.js "> </ script >
Original file line number Diff line number Diff line change 55 < meta http-equiv ="Content-type " content ="text/html;charset=UTF-8 ">
66 < meta name ="description " content ="Use event delegation on map objects ">
77 < title > Map Objects Event Delegation</ title >
8+ < link rel ="stylesheet " type ="text/css " href ="css/log.css " />
89 < link rel ="stylesheet " type ="text/css " href ="https://js.api.here.com/v3/3.0/mapsjs-ui.css " />
910 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-core.js "> </ script >
1011 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-service.js "> </ script >
Original file line number Diff line number Diff line change 55 < meta http-equiv ="Content-type " content ="text/html;charset=UTF-8 ">
66 < meta name ="description " content ="Request a walking route from A to B and display it on the map. ">
77 < title > Map with Pedestrian Route from A to B</ title >
8+ < link rel ="stylesheet " type ="text/css " href ="css/routing.css " />
89 < link rel ="stylesheet " type ="text/css " href ="https://js.api.here.com/v3/3.0/mapsjs-ui.css " />
910 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-core.js "> </ script >
1011 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-service.js "> </ script >
Original file line number Diff line number Diff line change 55 < meta http-equiv ="Content-type " content ="text/html;charset=UTF-8 ">
66 < meta name ="description " content ="Request a route from A to B using public transport and display it on the map. ">
77 < title > Map with Route from A to B using Public Transport</ title >
8+ < link rel ="stylesheet " type ="text/css " href ="css/routing.css " />
89 < link rel ="stylesheet " type ="text/css " href ="https://js.api.here.com/v3/3.0/mapsjs-ui.css " />
910 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-core.js "> </ script >
1011 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-service.js "> </ script >
Original file line number Diff line number Diff line change 55 < meta http-equiv ="Content-type " content ="text/html;charset=UTF-8 ">
66 < meta name ="description " content ="Request a driving route from A to B and display it on the map. ">
77 < title > Map with Driving Route from A to B</ title >
8+ < link rel ="stylesheet " type ="text/css " href ="css/routing.css " />
89 < link rel ="stylesheet " type ="text/css " href ="https://js.api.here.com/v3/3.0/mapsjs-ui.css " />
910 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-core.js "> </ script >
1011 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-service.js "> </ script >
Original file line number Diff line number Diff line change 55 < meta http-equiv ="Content-type " content ="text/html;charset=UTF-8 ">
66 < meta name ="description " content ="Request a truck route from A to B and display it on the map. ">
77 < title > Map with Truck Route from A to B</ title >
8+ < link rel ="stylesheet " type ="text/css " href ="css/routing.css " />
89 < link rel ="stylesheet " type ="text/css " href ="https://js.api.here.com/v3/3.0/mapsjs-ui.css " />
910 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-core.js "> </ script >
1011 < script type ="text/javascript " src ="https://js.api.here.com/v3/3.0/mapsjs-service.js "> </ script >
You can’t perform that action at this time.
0 commit comments