Add attributions to the map
| | |
| | | help_source: 'Source', |
| | | help_license: 'License', |
| | | |
| | | copy_osm: 'Map: <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.', |
| | | copy_zikit: 'Data: <a href="http://www.ttss.krakow.pl/internetservice/">ZIKiT</a>', |
| | | copy_jacekk: 'Realization: <a href="https://github.com/jacekkow/mpk-ttss">Jacek Kowalski</a>', |
| | | |
| | | error_title: 'Error occured!', |
| | | error_request_failed: 'Internet request failed.', |
| | | error_request_failed_status: 'Internet request failed with error: $status.', |
| | |
| | | help_source: 'Kod źródłowy', |
| | | help_license: 'Licencja', |
| | | |
| | | copy_osm: 'Mapa: <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>.', |
| | | copy_zikit: 'Dane: <a href="http://www.ttss.krakow.pl/internetservice/">ZIKiT</a>.', |
| | | copy_jacekk: 'Wykonanie: <a href="https://github.com/jacekkow/mpk-ttss">Jacek Kowalski</a>.', |
| | | |
| | | error_title: 'Wystąpił błąd!', |
| | | error_request_failed: 'Wykonanie żądania internetowego nie udało się.', |
| | | error_request_failed_status: 'Wykonanie żądania internetowego nie udało się. Błąd: $status.', |
| | |
| | | #map .ol-attribution { |
| | | left: 0; |
| | | right: auto; |
| | | text-align: left; |
| | | } |
| | | |
| | | #popup { |
| | |
| | | }); |
| | | stops_layer = new ol.layer.Vector({ |
| | | source: stops_source, |
| | | |
| | | }); |
| | | |
| | | stop_points_source = new ol.source.Vector({ |
| | |
| | | |
| | | vehicles_source = new ol.source.Vector({ |
| | | features: [], |
| | | attributions: lang.copy_zikit, |
| | | }); |
| | | vehicles_layer = new ol.layer.Vector({ |
| | | source: vehicles_source, |
| | |
| | | |
| | | route_source = new ol.source.Vector({ |
| | | features: [], |
| | | attributions: lang.copy_jacekk, |
| | | }); |
| | | route_layer = new ol.layer.Vector({ |
| | | source: route_source, |
| | |
| | | target: 'map', |
| | | layers: [ |
| | | new ol.layer.Tile({ |
| | | source: new ol.source.OSM() |
| | | source: new ol.source.OSM({ |
| | | attributions: lang.copy_osm, |
| | | }) |
| | | }), |
| | | route_layer, |
| | | stops_layer, |