2018年4月5日木曜日

Leaflet 1.3 - 1 はじめに

1 はじめに

Leaflet — an open-source JavaScript library
for mobile-friendly interactive maps
http://leafletjs.com/
Leaflet — a JavaScript library for interactive maps

に、次のように書かれています。


Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. Weighing just about 38 KB of JS [38KB gzipped - that's 133KB minified and 378KB in the source form, with 10KB of CSS (2 KB gzipped) and 11 KB of mages.], it has all the mapping features most developers ever need.

Leaflet は、モバイルに適したインタラクティブ(対話型)マップのための先進的なオープンソース JavaScript ライブラリです。およそ 38Kバイトほどのファイルサイズで、ほとんどの開発者が常に必要とする全てのマッピング機能を備えています。(38KB gzip 圧縮されています - 133KB 圧縮版とソースフォームに 378KB、10KB の CSS (2KB に gzip 圧縮)と 11KB の mage)

Leaflet is designed with simplicity, performance and usability in mind. It works efficiently across all major desktop and mobile platforms, can be extended with lots of plugins, has a beautiful, easy to use and well-documented API and a simple, readable source code that is a joy to contribute to.

Leaflet は、シンプル(簡潔性)、パフォーマンス(性能)、ユーザビリティ(操作性)を考慮して設計されています。全ての主要なデスクトップとモバイルプラットフォームに渡って効果的に動作し、たくさんのプラグインで拡張され、美しく、使いやすく、そして、整備された API と貢献が喜びである簡潔で読みやすいソースコードです。

Here we create a map in the 'map' div, add tiles of our choice, and then add a marker with some text in a popup:

ここに、'map' div にマップを作成し、選択したタイルを追加し、ポップアップにいくつかのテキストがあるマーカを追加します:

var map = L.map('map').setView([51.505, -0.09], 13);

L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
 attribution: '© OpenStreetMap contributors'
}).addTo(map);

L.marker([51.5, -0.09]).addTo(map)
 .bindPopup('A pretty CSS3 popup.
 Easily customizable.')
 .openPopup();

Learn more with the quick start guide, check out other tutorials, or head straight to the API documentation. If you have any questions, take a look at the FAQ first.

quick start guide で更に学習し、他のチュートリアルを確認し、または、API ドキュメントに直接に向かっ(参照し)てください。疑問があれば、最初に、FAQ を参照してください。


「Features」には、次のように説明があります。

Features

Leaflet doesn't try to do everything for everyone. Instead it focuses on making the basic things work perfectly.

Leaflet は、すべての人のためにすべてのことを試していません。そのかわりに、基本的なものを完全に動作させることに焦点を合わせています。

Layers Out of the Box
 Tile layers, WMS
 Markers, Popups
 Vector layers: polylines, polygons, circles, rectangles
 Image overlays
 GeoJSON

Interaction Features
 Drag panning with inertia
 Scroll wheel zoom
 Pinch-zoom on mobile
 Double click zoom
 Zoom to area (shift-drag)
 Keyboard navigation
 Events: click, mouseover, etc.
 Marker dragging

Visual Features
 Zoom and pan animation
 Tile and popup fade animation
 Very nice default design for markers, popups and map controls
 Retina resolution support

Customization Features
 Pure CSS3 popups and controls for easy restyling
 Image- and HTML-based markers
 A simple interface for custom map layers and controls
 Custom map projections (with EPSG:3857/4326/3395 out of the box)
 Powerful OOP facilities for extending existing classes

Performance Features
 Hardware acceleration on mobile makes it feel as smooth as native apps
 Utilizing CSS3 features to make panning and zooming really smooth
 Smart polyline/polygon rendering with dynamic clipping and simplification makes it very fast
 Modular build system for leaving out features you don't need
 Tap delay elimination on mobile

Map Controls
 Zoom buttons
 Attribution
 Layer switcher
 Scale

Browser Support
Desktop
 Chrome
 Firefox
 Safari 5+
 Opera 12+
 IE 7–11

Mobile
 Safari for iOS 7+
 Android browser 2.2+, 3.1+, 4+
 Chrome for mobile
 Firefox for mobile
 IE10+ for Win8 devices

Misc
 Extremely lightweight
 No external dependencies

If you find some feature really missing in Leaflet, first check if there's a plugin for it. If not, please vote for the feature on the Leaflet UserVoice page.

Leaflet に全くない機能を探すときは、最初に、そのプラグインがあるか確認してください。もしなければ、Leaflet UserVoice ページに機能を投票してください。



「Getting Involved」には、次のように説明があります。

Getting Involved

Let's create the best mapping library that will ever exist! Leaflet is developed by Vladimir Agafonkin of Mapbox with a team of dedicated contributors. Pull requests are always welcome. However, there are many more ways to get involved with the development of Leaflet.

すでに存在している最高のマッピングライブラリを作成しましょう!Leaflet は、献身的な機構者とともに Mapbox の Vladimir Agafonkin によって開発されています。プルリクエストはいつでも歓迎されています。しかしながら、Leaflet の開発に関わるさらに多くの方法がります。

You can help the project tremendously by discovering and reporting bugs, improving documentation, helping others on Stack Overflow, GIS Stack Exchange and GitHub issues, showing your support for your favorite feature suggestions on Leaflet UserVoice page, tweeting to @LeafletJS and spreading the word about Leaflet among your colleagues and friends.

バグの発見と報告(Reporting Bugs)、および、ドキュメントの向上(Improving Documentation)、および、Stack Overflow と GIS Stack Exchange と GitHub issues の他の支援、および、Leaflet UserVoice page のお気に入り機能提案の支援の参照、および、@LeafletJS へのツイート、および、同僚や友人へ Leaflet についての言葉の普及によってプロジェクトをとても支援できます。

Check out the contribution guide for more information on getting involved with Leaflet development.

Leaflet の開発に関わるさらに多くのインフォメーションのコントリビューション(支援)ガイドを確認してください。

0 件のコメント: