4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

geojson のスタイル指定

Last updated at Posted at 2015-05-20

こんにちは。
geojson の仕様にはスタイル指定は存在しませんが、スタイル指定を拡張したものがあります。

  • Leaflet 準拠のスタイル指定。
  • simplestyle 拡張仕様。これは GitHub でも採用しています1(下記のように"properties": {}の中に入れます)。
"properties": {
    "title": "",
    "description": "",
    "marker-size": "medium",
    "marker-symbol": "",
    "marker-color": "#7e7e7e",
    "stroke": "#555555",
    "stroke-opacity": 1.0,
    "stroke-width": 2,
    "fill": "#555555",
    "fill-opacity": 0.6
}

geojson.jpg

  1. なお http://geojson.io/ でもこの simplestyle 仕様を採用しているようです。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?