This repository was archived by the owner on Nov 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html ng-app ="demoapp ">
3+ < head >
4+ < meta content ="text/html;charset=utf-8 " http-equiv ="Content-Type ">
5+ < meta content ="utf-8 " http-equiv ="encoding ">
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7+ < meta http-equiv ="Content-Type " content ="text/html; charset=UTF-8 ">
8+ < script src ="http://api-maps.yandex.ru/2.0/?load=package.map&lang=ru-RU " type ="text/javascript "> </ script >
9+ < script src ="../bower_components/angular/angular.min.js "> </ script >
10+ < script src ="../bower_components/leaflet/dist/leaflet.js "> </ script >
11+ < script src ="../bower_components/leaflet-plugins/layer/tile/Yandex.js "> </ script >
12+ < script src ="../dist/angular-leaflet-directive.min.js "> </ script >
13+ < link rel ="stylesheet " href ="../bower_components/leaflet/dist/leaflet.css " />
14+ < script >
15+ var app = angular . module ( "demoapp" , [ "leaflet-directive" ] ) ;
16+ app . controller ( "LayersYandexController" , [ "$scope" , function ( $scope ) {
17+ angular . extend ( $scope , {
18+ berlin : {
19+ lat : 52.52 ,
20+ lng : 13.40 ,
21+ zoom : 14
22+ } ,
23+ markers : {
24+ m1 : {
25+ lat : 52.52 ,
26+ lng : 13.40
27+ }
28+ } ,
29+ layers : {
30+ baselayers : {
31+ yandex : {
32+ name : 'Yandex' ,
33+ type : 'yandex' ,
34+ layerOptions : {
35+ layerType : 'map' ,
36+ }
37+ } ,
38+ yandexTraffic : {
39+ name : 'Yandex Traffic' ,
40+ type : 'yandex' ,
41+ layerOptions : {
42+ layerType : 'map' ,
43+ traffic : true ,
44+ }
45+ }
46+ }
47+ }
48+ } ) ;
49+ } ] ) ;
50+ </ script >
51+ </ head >
52+ < body ng-controller ="LayersYandexController ">
53+ < leaflet center ="berlin " layers ="layers " markers ="markers " height ="480px " width ="100% "> </ leaflet >
54+ < h1 > Yandex layer example</ h1 >
55+ < p > Use the Layer Switch Control on the top rigth of the map to select another Yandex Layer.</ p >
56+ </ body >
57+ </ html >
You can’t perform that action at this time.
0 commit comments