@mapgis/mapbox-gl 16.0.1 → 16.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mapbox-gl.js +3 -3
- package/dist/mapbox-gl.js.map +1 -1
- package/package.json +1 -1
- package/.flowconfig +0 -61
- package/LICENSE.txt +0 -84
- package/README.md +0 -34
- package/build/banner.js +0 -4
- package/build/check-bundle-size.js +0 -140
- package/build/generate-access-token-script.js +0 -11
- package/build/generate-flow-typed-style-spec.js +0 -188
- package/build/generate-release-list.js +0 -21
- package/build/generate-struct-arrays.js +0 -237
- package/build/generate-style-code.js +0 -159
- package/build/mapbox-gl.js.flow +0 -3
- package/build/print-release-url.js +0 -6
- package/build/rollup_plugin_minify_style_spec.js +0 -20
- package/build/rollup_plugins.js +0 -80
- package/build/run-node +0 -3
- package/build/run-tap +0 -8
- package/build/test/build-tape.js +0 -19
- package/flow-typed/gl.js +0 -5
- package/flow-typed/jsdom.js +0 -18
- package/flow-typed/mapbox-gl-supported.js +0 -9
- package/flow-typed/mapbox-unitbezier.js +0 -14
- package/flow-typed/offscreen-canvas.js +0 -9
- package/flow-typed/pbf.js +0 -25
- package/flow-typed/point-geometry.js +0 -44
- package/flow-typed/potpack.js +0 -12
- package/flow-typed/sinon.js +0 -28
- package/flow-typed/vector-tile.js +0 -41
- package/src/css/mapbox-gl.css +0 -798
- package/src/css/svg/mapboxgl-ctrl-attrib.svg +0 -3
- package/src/css/svg/mapboxgl-ctrl-compass.svg +0 -4
- package/src/css/svg/mapboxgl-ctrl-fullscreen.svg +0 -3
- package/src/css/svg/mapboxgl-ctrl-geolocate.svg +0 -5
- package/src/css/svg/mapboxgl-ctrl-logo.svg +0 -20
- package/src/css/svg/mapboxgl-ctrl-shrink.svg +0 -3
- package/src/css/svg/mapboxgl-ctrl-zoom-in.svg +0 -3
- package/src/css/svg/mapboxgl-ctrl-zoom-out.svg +0 -3
- package/src/data/array_types.js +0 -1095
- package/src/data/bucket/circle_attributes.js +0 -9
- package/src/data/bucket/circle_bucket.js +0 -204
- package/src/data/bucket/fill_attributes.js +0 -9
- package/src/data/bucket/fill_bucket.js +0 -233
- package/src/data/bucket/fill_extrusion_attributes.js +0 -10
- package/src/data/bucket/fill_extrusion_bucket.js +0 -289
- package/src/data/bucket/heatmap_bucket.js +0 -17
- package/src/data/bucket/line_attributes.js +0 -10
- package/src/data/bucket/line_bucket.js +0 -556
- package/src/data/bucket/pattern_attributes.js +0 -10
- package/src/data/bucket/pattern_bucket_features.js +0 -60
- package/src/data/bucket/symbol_attributes.js +0 -117
- package/src/data/bucket/symbol_bucket.js +0 -972
- package/src/data/bucket.js +0 -123
- package/src/data/dem_data.js +0 -125
- package/src/data/extent.js +0 -18
- package/src/data/feature_index.js +0 -321
- package/src/data/feature_position_map.js +0 -125
- package/src/data/index_array_type.js +0 -16
- package/src/data/load_geometry.js +0 -48
- package/src/data/pos_attributes.js +0 -6
- package/src/data/program_configuration.js +0 -687
- package/src/data/raster_bounds_attributes.js +0 -7
- package/src/data/segment.js +0 -76
- package/src/geo/edge_insets.js +0 -102
- package/src/geo/lng_lat.js +0 -165
- package/src/geo/lng_lat_bounds.js +0 -267
- package/src/geo/mercator_coordinate.js +0 -153
- package/src/geo/transform.js +0 -864
- package/src/gl/color_mode.js +0 -34
- package/src/gl/context.js +0 -298
- package/src/gl/cull_face_mode.js +0 -26
- package/src/gl/depth_mode.js +0 -29
- package/src/gl/framebuffer.js +0 -44
- package/src/gl/index_buffer.js +0 -55
- package/src/gl/stencil_mode.js +0 -30
- package/src/gl/types.js +0 -84
- package/src/gl/value.js +0 -520
- package/src/gl/vertex_buffer.js +0 -119
- package/src/index.js +0 -201
- package/src/render/draw_background.js +0 -57
- package/src/render/draw_circle.js +0 -113
- package/src/render/draw_collision_debug.js +0 -49
- package/src/render/draw_custom.js +0 -49
- package/src/render/draw_debug.js +0 -127
- package/src/render/draw_fill.js +0 -126
- package/src/render/draw_fill_extrusion.js +0 -96
- package/src/render/draw_heatmap.js +0 -140
- package/src/render/draw_hillshade.js +0 -108
- package/src/render/draw_line.js +0 -98
- package/src/render/draw_raster.js +0 -125
- package/src/render/draw_symbol.js +0 -394
- package/src/render/glyph_atlas.js +0 -71
- package/src/render/glyph_manager.js +0 -182
- package/src/render/image_atlas.js +0 -149
- package/src/render/image_manager.js +0 -306
- package/src/render/line_atlas.js +0 -210
- package/src/render/painter.js +0 -653
- package/src/render/program/background_program.js +0 -103
- package/src/render/program/circle_program.js +0 -69
- package/src/render/program/clipping_mask_program.js +0 -20
- package/src/render/program/collision_program.js +0 -49
- package/src/render/program/debug_program.js +0 -35
- package/src/render/program/fill_extrusion_program.js +0 -122
- package/src/render/program/fill_program.js +0 -126
- package/src/render/program/heatmap_program.js +0 -83
- package/src/render/program/hillshade_program.js +0 -122
- package/src/render/program/line_program.js +0 -207
- package/src/render/program/pattern.js +0 -102
- package/src/render/program/program_uniforms.js +0 -42
- package/src/render/program/raster_program.js +0 -92
- package/src/render/program/symbol_program.js +0 -224
- package/src/render/program.js +0 -168
- package/src/render/texture.js +0 -122
- package/src/render/uniform_binding.js +0 -147
- package/src/render/vertex_array_object.js +0 -163
- package/src/shaders/README.md +0 -42
- package/src/shaders/_prelude.fragment.glsl +0 -17
- package/src/shaders/_prelude.vertex.glsl +0 -73
- package/src/shaders/background.fragment.glsl +0 -10
- package/src/shaders/background.vertex.glsl +0 -7
- package/src/shaders/background_pattern.fragment.glsl +0 -28
- package/src/shaders/background_pattern.vertex.glsl +0 -20
- package/src/shaders/circle.fragment.glsl +0 -39
- package/src/shaders/circle.vertex.glsl +0 -64
- package/src/shaders/clipping_mask.fragment.glsl +0 -3
- package/src/shaders/clipping_mask.vertex.glsl +0 -7
- package/src/shaders/collision_box.fragment.glsl +0 -21
- package/src/shaders/collision_box.vertex.glsl +0 -27
- package/src/shaders/collision_circle.fragment.glsl +0 -34
- package/src/shaders/collision_circle.vertex.glsl +0 -36
- package/src/shaders/debug.fragment.glsl +0 -9
- package/src/shaders/debug.vertex.glsl +0 -12
- package/src/shaders/encode_attribute.js +0 -17
- package/src/shaders/fill.fragment.glsl +0 -13
- package/src/shaders/fill.vertex.glsl +0 -13
- package/src/shaders/fill_extrusion.fragment.glsl +0 -9
- package/src/shaders/fill_extrusion.vertex.glsl +0 -66
- package/src/shaders/fill_extrusion_pattern.fragment.glsl +0 -45
- package/src/shaders/fill_extrusion_pattern.vertex.glsl +0 -79
- package/src/shaders/fill_outline.fragment.glsl +0 -17
- package/src/shaders/fill_outline.vertex.glsl +0 -17
- package/src/shaders/fill_outline_pattern.fragment.glsl +0 -43
- package/src/shaders/fill_outline_pattern.vertex.glsl +0 -44
- package/src/shaders/fill_pattern.fragment.glsl +0 -36
- package/src/shaders/fill_pattern.vertex.glsl +0 -39
- package/src/shaders/heatmap.fragment.glsl +0 -22
- package/src/shaders/heatmap.vertex.glsl +0 -54
- package/src/shaders/heatmap_texture.fragment.glsl +0 -14
- package/src/shaders/heatmap_texture.vertex.glsl +0 -11
- package/src/shaders/hillshade.fragment.glsl +0 -52
- package/src/shaders/hillshade.vertex.glsl +0 -11
- package/src/shaders/hillshade_prepare.fragment.glsl +0 -74
- package/src/shaders/hillshade_prepare.vertex.glsl +0 -15
- package/src/shaders/index.js +0 -20
- package/src/shaders/line.fragment.glsl +0 -30
- package/src/shaders/line.vertex.glsl +0 -85
- package/src/shaders/line_gradient.fragment.glsl +0 -34
- package/src/shaders/line_gradient.vertex.glsl +0 -87
- package/src/shaders/line_pattern.fragment.glsl +0 -74
- package/src/shaders/line_pattern.vertex.glsl +0 -99
- package/src/shaders/line_sdf.fragment.glsl +0 -45
- package/src/shaders/line_sdf.vertex.glsl +0 -98
- package/src/shaders/raster.fragment.glsl +0 -52
- package/src/shaders/raster.vertex.glsl +0 -21
- package/src/shaders/shaders.js +0 -180
- package/src/shaders/symbol_icon.fragment.glsl +0 -17
- package/src/shaders/symbol_icon.vertex.glsl +0 -94
- package/src/shaders/symbol_sdf.fragment.glsl +0 -52
- package/src/shaders/symbol_sdf.vertex.glsl +0 -115
- package/src/shaders/symbol_text_and_icon.fragment.glsl +0 -68
- package/src/shaders/symbol_text_and_icon.vertex.glsl +0 -116
- package/src/source/canvas_source.js +0 -238
- package/src/source/geojson_helper.js +0 -92
- package/src/source/geojson_source.js +0 -374
- package/src/source/geojson_worker_source.js +0 -357
- package/src/source/geojson_wrapper.js +0 -94
- package/src/source/image_source.js +0 -307
- package/src/source/load_tilejson.js +0 -39
- package/src/source/mbtiles_source.js +0 -115
- package/src/source/offline_database.js +0 -61
- package/src/source/offline_database_root.js +0 -62
- package/src/source/pixels_to_tile_units.js +0 -21
- package/src/source/query_features.js +0 -208
- package/src/source/raster_dem_tile_source.js +0 -138
- package/src/source/raster_dem_tile_worker_source.js +0 -62
- package/src/source/raster_tile_offline_source.js +0 -136
- package/src/source/raster_tile_source.js +0 -177
- package/src/source/rtl_text_plugin.js +0 -138
- package/src/source/source.js +0 -137
- package/src/source/source_cache.js +0 -957
- package/src/source/source_state.js +0 -159
- package/src/source/tile.js +0 -465
- package/src/source/tile_bounds.js +0 -38
- package/src/source/tile_cache.js +0 -212
- package/src/source/tile_id.js +0 -402
- package/src/source/vector_tile_source.js +0 -192
- package/src/source/vector_tile_worker_source.js +0 -216
- package/src/source/video_source.js +0 -203
- package/src/source/worker.js +0 -237
- package/src/source/worker_source.js +0 -106
- package/src/source/worker_tile.js +0 -224
- package/src/style/create_style_layer.js +0 -36
- package/src/style/evaluation_parameters.js +0 -62
- package/src/style/light.js +0 -130
- package/src/style/load_glyph_range.js +0 -38
- package/src/style/load_sprite.js +0 -67
- package/src/style/parse_glyph_pbf.js +0 -44
- package/src/style/pauseable_placement.js +0 -132
- package/src/style/properties.js +0 -753
- package/src/style/query_utils.js +0 -43
- package/src/style/style.js +0 -1361
- package/src/style/style_glyph.js +0 -17
- package/src/style/style_image.js +0 -137
- package/src/style/style_layer/background_style_layer.js +0 -21
- package/src/style/style_layer/background_style_layer_properties.js +0 -40
- package/src/style/style_layer/circle_style_layer.js +0 -98
- package/src/style/style_layer/circle_style_layer_properties.js +0 -63
- package/src/style/style_layer/custom_style_layer.js +0 -223
- package/src/style/style_layer/fill_extrusion_style_layer.js +0 -224
- package/src/style/style_layer/fill_extrusion_style_layer_properties.js +0 -50
- package/src/style/style_layer/fill_style_layer.js +0 -67
- package/src/style/style_layer/fill_style_layer_properties.js +0 -55
- package/src/style/style_layer/heatmap_style_layer.js +0 -69
- package/src/style/style_layer/heatmap_style_layer_properties.js +0 -44
- package/src/style/style_layer/hillshade_style_layer.js +0 -25
- package/src/style/style_layer/hillshade_style_layer_properties.js +0 -46
- package/src/style/style_layer/layer_properties.js.ejs +0 -69
- package/src/style/style_layer/line_style_layer.js +0 -151
- package/src/style/style_layer/line_style_layer_properties.js +0 -71
- package/src/style/style_layer/raster_style_layer.js +0 -21
- package/src/style/style_layer/raster_style_layer_properties.js +0 -50
- package/src/style/style_layer/symbol_style_layer.js +0 -190
- package/src/style/style_layer/symbol_style_layer_properties.js +0 -153
- package/src/style/style_layer/typed_style_layer.js +0 -17
- package/src/style/style_layer.js +0 -281
- package/src/style/style_layer_index.js +0 -80
- package/src/style/validate_style.js +0 -42
- package/src/style/zoom_history.js +0 -44
- package/src/style-spec/.eslintrc +0 -5
- package/src/style-spec/CHANGELOG.md +0 -438
- package/src/style-spec/README.md +0 -59
- package/src/style-spec/bin/gl-style-composite +0 -9
- package/src/style-spec/bin/gl-style-format +0 -22
- package/src/style-spec/bin/gl-style-migrate +0 -9
- package/src/style-spec/bin/gl-style-validate +0 -50
- package/src/style-spec/composite.js +0 -50
- package/src/style-spec/declass.js +0 -42
- package/src/style-spec/deref.js +0 -52
- package/src/style-spec/diff.js +0 -393
- package/src/style-spec/dist/.gitkeep +0 -0
- package/src/style-spec/empty.js +0 -29
- package/src/style-spec/error/parsing_error.js +0 -16
- package/src/style-spec/error/validation_error.js +0 -18
- package/src/style-spec/expression/compound_expression.js +0 -162
- package/src/style-spec/expression/definitions/assertion.js +0 -130
- package/src/style-spec/expression/definitions/at.js +0 -70
- package/src/style-spec/expression/definitions/case.js +0 -85
- package/src/style-spec/expression/definitions/coalesce.js +0 -93
- package/src/style-spec/expression/definitions/coercion.js +0 -133
- package/src/style-spec/expression/definitions/collator.js +0 -78
- package/src/style-spec/expression/definitions/comparison.js +0 -184
- package/src/style-spec/expression/definitions/format.js +0 -144
- package/src/style-spec/expression/definitions/format_section_override.js +0 -54
- package/src/style-spec/expression/definitions/image.js +0 -52
- package/src/style-spec/expression/definitions/in.js +0 -92
- package/src/style-spec/expression/definitions/index.js +0 -561
- package/src/style-spec/expression/definitions/interpolate.js +0 -267
- package/src/style-spec/expression/definitions/length.js +0 -61
- package/src/style-spec/expression/definitions/let.js +0 -72
- package/src/style-spec/expression/definitions/literal.js +0 -77
- package/src/style-spec/expression/definitions/match.js +0 -158
- package/src/style-spec/expression/definitions/number_format.js +0 -142
- package/src/style-spec/expression/definitions/step.js +0 -120
- package/src/style-spec/expression/definitions/var.js +0 -46
- package/src/style-spec/expression/definitions/within.js +0 -333
- package/src/style-spec/expression/evaluation_context.js +0 -59
- package/src/style-spec/expression/expression.js +0 -27
- package/src/style-spec/expression/index.js +0 -392
- package/src/style-spec/expression/is_constant.js +0 -59
- package/src/style-spec/expression/parsing_context.js +0 -233
- package/src/style-spec/expression/parsing_error.js +0 -13
- package/src/style-spec/expression/runtime_error.js +0 -17
- package/src/style-spec/expression/scope.js +0 -36
- package/src/style-spec/expression/stops.js +0 -39
- package/src/style-spec/expression/types/collator.js +0 -61
- package/src/style-spec/expression/types/formatted.js +0 -73
- package/src/style-spec/expression/types/resolved_image.js +0 -29
- package/src/style-spec/expression/types.js +0 -106
- package/src/style-spec/expression/values.js +0 -123
- package/src/style-spec/feature_filter/README.md +0 -55
- package/src/style-spec/feature_filter/convert.js +0 -208
- package/src/style-spec/feature_filter/index.js +0 -165
- package/src/style-spec/format.js +0 -51
- package/src/style-spec/function/convert.js +0 -254
- package/src/style-spec/function/index.js +0 -262
- package/src/style-spec/group_by_layout.js +0 -75
- package/src/style-spec/migrate/expressions.js +0 -39
- package/src/style-spec/migrate/v8.js +0 -203
- package/src/style-spec/migrate/v9.js +0 -26
- package/src/style-spec/migrate.js +0 -36
- package/src/style-spec/package.json +0 -41
- package/src/style-spec/read_style.js +0 -14
- package/src/style-spec/reference/latest.js +0 -3
- package/src/style-spec/reference/v8.json +0 -5808
- package/src/style-spec/rollup.config.js +0 -45
- package/src/style-spec/style-spec.js +0 -122
- package/src/style-spec/types.js +0 -438
- package/src/style-spec/util/color.js +0 -95
- package/src/style-spec/util/color_spaces.js +0 -139
- package/src/style-spec/util/deep_equal.js +0 -28
- package/src/style-spec/util/extend.js +0 -10
- package/src/style-spec/util/get_type.js +0 -17
- package/src/style-spec/util/interpolate.js +0 -22
- package/src/style-spec/util/properties.js +0 -15
- package/src/style-spec/util/ref_properties.js +0 -2
- package/src/style-spec/util/result.js +0 -19
- package/src/style-spec/util/unbundle_jsonlint.js +0 -24
- package/src/style-spec/validate/latest.js +0 -11
- package/src/style-spec/validate/validate.js +0 -75
- package/src/style-spec/validate/validate_array.js +0 -52
- package/src/style-spec/validate/validate_boolean.js +0 -15
- package/src/style-spec/validate/validate_color.js +0 -20
- package/src/style-spec/validate/validate_constants.js +0 -13
- package/src/style-spec/validate/validate_enum.js +0 -21
- package/src/style-spec/validate/validate_expression.js +0 -43
- package/src/style-spec/validate/validate_filter.js +0 -111
- package/src/style-spec/validate/validate_formatted.js +0 -11
- package/src/style-spec/validate/validate_function.js +0 -207
- package/src/style-spec/validate/validate_glyphs_url.js +0 -21
- package/src/style-spec/validate/validate_image.js +0 -11
- package/src/style-spec/validate/validate_layer.js +0 -134
- package/src/style-spec/validate/validate_layout_property.js +0 -6
- package/src/style-spec/validate/validate_light.js +0 -47
- package/src/style-spec/validate/validate_number.js +0 -29
- package/src/style-spec/validate/validate_object.js +0 -61
- package/src/style-spec/validate/validate_paint_property.js +0 -6
- package/src/style-spec/validate/validate_property.js +0 -64
- package/src/style-spec/validate/validate_source.js +0 -111
- package/src/style-spec/validate/validate_string.js +0 -15
- package/src/style-spec/validate_mapbox_api_supported.js +0 -171
- package/src/style-spec/validate_style.js +0 -39
- package/src/style-spec/validate_style.min.js +0 -78
- package/src/style-spec/visit.js +0 -77
- package/src/symbol/anchor.js +0 -26
- package/src/symbol/check_max_angle.js +0 -81
- package/src/symbol/clip_line.js +0 -71
- package/src/symbol/collision_feature.js +0 -217
- package/src/symbol/collision_index.js +0 -372
- package/src/symbol/cross_tile_symbol_index.js +0 -301
- package/src/symbol/get_anchors.js +0 -167
- package/src/symbol/grid_index.js +0 -335
- package/src/symbol/mergelines.js +0 -82
- package/src/symbol/one_em.js +0 -4
- package/src/symbol/opacity_state.js +0 -27
- package/src/symbol/placement.js +0 -1062
- package/src/symbol/projection.js +0 -450
- package/src/symbol/quads.js +0 -334
- package/src/symbol/shaping.js +0 -816
- package/src/symbol/symbol_layout.js +0 -772
- package/src/symbol/symbol_size.js +0 -113
- package/src/symbol/transform_text.js +0 -29
- package/src/types/callback.js +0 -17
- package/src/types/cancelable.js +0 -3
- package/src/types/tilejson.js +0 -17
- package/src/types/transferable.js +0 -3
- package/src/types/window.js +0 -172
- package/src/ui/anchor.js +0 -32
- package/src/ui/bind_handlers.js +0 -202
- package/src/ui/camera.js +0 -1152
- package/src/ui/control/attribution_control.js +0 -189
- package/src/ui/control/fps_control.js +0 -185
- package/src/ui/control/fullscreen_control.js +0 -147
- package/src/ui/control/geolocate_control.js +0 -594
- package/src/ui/control/logo_control.js +0 -92
- package/src/ui/control/navigation_control.js +0 -148
- package/src/ui/control/scale_control.js +0 -142
- package/src/ui/crs.js +0 -64
- package/src/ui/default_locale.js +0 -20
- package/src/ui/events.js +0 -806
- package/src/ui/handler/box_zoom.js +0 -175
- package/src/ui/handler/dblclick_zoom.js +0 -139
- package/src/ui/handler/drag_pan.js +0 -416
- package/src/ui/handler/drag_rotate.js +0 -378
- package/src/ui/handler/keyboard.js +0 -161
- package/src/ui/handler/scroll_zoom.js +0 -333
- package/src/ui/handler/touch_zoom_rotate.js +0 -293
- package/src/ui/hash.js +0 -147
- package/src/ui/map.js +0 -2883
- package/src/ui/marker.js +0 -607
- package/src/ui/offline_map.js +0 -91
- package/src/ui/popup.js +0 -530
- package/src/util/actor.js +0 -212
- package/src/util/ajax.js +0 -371
- package/src/util/browser/web_worker.js +0 -10
- package/src/util/browser/window.js +0 -5
- package/src/util/browser.js +0 -70
- package/src/util/classify_rings.js +0 -52
- package/src/util/color_ramp.js +0 -28
- package/src/util/config.js +0 -30
- package/src/util/debug.js +0 -12
- package/src/util/dictionary_coder.js +0 -30
- package/src/util/dispatcher.js +0 -70
- package/src/util/dom.js +0 -144
- package/src/util/evented.js +0 -174
- package/src/util/find_pole_of_inaccessibility.js +0 -129
- package/src/util/global_worker_pool.js +0 -17
- package/src/util/image.js +0 -142
- package/src/util/intersection_tests.js +0 -208
- package/src/util/is_char_in_unicode_block.js +0 -311
- package/src/util/mapbox.js +0 -486
- package/src/util/offscreen_canvas_supported.js +0 -14
- package/src/util/performance.js +0 -112
- package/src/util/primitives.js +0 -145
- package/src/util/resolve_tokens.js +0 -16
- package/src/util/script_detection.js +0 -328
- package/src/util/sku_token.js +0 -42
- package/src/util/smart_wrap.js +0 -55
- package/src/util/struct_array.js +0 -243
- package/src/util/struct_array.js.ejs +0 -112
- package/src/util/struct_array_layout.js.ejs +0 -98
- package/src/util/task_queue.js +0 -68
- package/src/util/throttle.js +0 -28
- package/src/util/throttled_invoker.js +0 -46
- package/src/util/tile_cover.js +0 -101
- package/src/util/tile_request_cache.js +0 -172
- package/src/util/util.js +0 -504
- package/src/util/vectortile_to_geojson.js +0 -54
- package/src/util/verticalize_punctuation.js +0 -114
- package/src/util/web_worker.js +0 -91
- package/src/util/web_worker_transfer.js +0 -266
- package/src/util/webp_supported.js +0 -69
- package/src/util/window.js +0 -102
- package/src/util/worker_pool.js +0 -47
|
@@ -1,438 +0,0 @@
|
|
|
1
|
-
## 13.13.0
|
|
2
|
-
|
|
3
|
-
### ✨ Features and improvements
|
|
4
|
-
* Add `within` expression for testing whether an evaluated feature lies within a given GeoJSON object ([#9352](https://github.com/mapbox/mapbox-gl-js/pull/9352)). For example:<br>
|
|
5
|
-
`"icon-opacity": ["case", ["==", ["within", "some-polygon"], true], 1,
|
|
6
|
-
["==", ["within", "some-polygon"], false], 0]`
|
|
7
|
-
* Improve scaling of patterns used in `line-pattern` on all device resolutions and pixel ratios ([#9266](https://github.com/mapbox/mapbox-gl-js/pull/9266))
|
|
8
|
-
|
|
9
|
-
### 🐛 Bug fixes
|
|
10
|
-
* Allow needle argument to `in` expression to be false ([#9295](https://github.com/mapbox/mapbox-gl-js/pull/9295))
|
|
11
|
-
* Fix a bug where `icon-image` expression that evaluates to an empty string (`''`) produced a warning ([#9380](https://github.com/mapbox/mapbox-gl-js/pull/9380))
|
|
12
|
-
* Prevent exception resulting from `line-dash-array` of empty length ([#9385](https://github.com/mapbox/mapbox-gl-js/pull/9385))
|
|
13
|
-
|
|
14
|
-
## 13.12.0
|
|
15
|
-
|
|
16
|
-
* Update `image` expression SDK support table ([#9228](https://github.com/mapbox/mapbox-gl-js/pull/9228))
|
|
17
|
-
* Fix `promoteId` for line layers ([#9210](https://github.com/mapbox/mapbox-gl-js/pull/9210), [#9212](https://github.com/mapbox/mapbox-gl-js/pull/9212))
|
|
18
|
-
|
|
19
|
-
## 13.11.0
|
|
20
|
-
|
|
21
|
-
### ✨ Features and improvements
|
|
22
|
-
* Add `promoteId` option to use a feature property as ID for feature state ([#8987](https://github.com/mapbox/mapbox-gl-js/pull/8987))
|
|
23
|
-
* Update `symbol-avoid-edges` documentation regarding global collision detection ([#9157](https://github.com/mapbox/mapbox-gl-js/pull/9157))
|
|
24
|
-
* Remove reference to `in` function which has been replaced by the `in` expression ([#9102](https://github.com/mapbox/mapbox-gl-js/pull/9102))
|
|
25
|
-
|
|
26
|
-
### 🐛 Bug fixes
|
|
27
|
-
* Fix bug where `symbol-sort-key` was not used for collisions that crossed tile boundaries ([#9054](https://github.com/mapbox/mapbox-gl-js/pull/9054))
|
|
28
|
-
|
|
29
|
-
## 13.10.2
|
|
30
|
-
|
|
31
|
-
### 🐛 Bug fixes
|
|
32
|
-
* Fix style validation error messages not being displayed ([#9073](https://github.com/mapbox/mapbox-gl-js/pull/9073))
|
|
33
|
-
|
|
34
|
-
## 13.10.0
|
|
35
|
-
|
|
36
|
-
### ✨ Features and improvements
|
|
37
|
-
* Add ability to insert images into text labels using an `image` expression within a `format` expression: `"text-field": ["format", "Some text", ["image", "my-image"], "some more text"]` ([#8904](https://github.com/mapbox/mapbox-gl-js/pull/8904))
|
|
38
|
-
* Add `in` expression. It can check if a value is in an array (`["in", value, array]`) or a substring is in a string (`["in", substring, string]`) ([#8876](https://github.com/mapbox/mapbox-gl-js/pull/8876))
|
|
39
|
-
* Add support for stretchable images (aka nine-part or nine-patch images). Stretchable images can be used with `icon-text-fit` to draw resized images with unstretched corners and borders. ([#8997](https://github.com/mapbox/mapbox-gl-js/pull/8997))
|
|
40
|
-
* Add an es modules build of for mapbox-gl-style-spec in dist/ ([#8247](https://github.com/mapbox/mapbox-gl-js/pull/8247)) (h/t [ahocevar](https://github.com/ahocevar))
|
|
41
|
-
|
|
42
|
-
## 13.9.1
|
|
43
|
-
|
|
44
|
-
### ✨ Improvement
|
|
45
|
-
* Rename `Image` type to `ResolvedImage`, to better represent the result of an `image` expression evaluation. ([#8901](https://github.com/mapbox/mapbox-gl-js/pull/8901))
|
|
46
|
-
|
|
47
|
-
## 13.9.0
|
|
48
|
-
|
|
49
|
-
* Add `image` expression operator to determine image availability ([#8684](https://github.com/mapbox/mapbox-gl-js/pull/8684))
|
|
50
|
-
* Add a style-spec function to validate that styles are compatible with the Mapbox API ([#8663](https://github.com/mapbox/mapbox-gl-js/pull/8663))
|
|
51
|
-
|
|
52
|
-
## 13.8.0
|
|
53
|
-
|
|
54
|
-
- Introduce `text-writing-mode` symbol layer property to allow placing point labels vertically. [#8399](https://github.com/mapbox/mapbox-gl-js/pull/8399)
|
|
55
|
-
- Allow `text-color` to be used in formatted expressions to be able to draw different parts of a label in different colors. [#8068](https://github.com/mapbox/mapbox-gl-js/pull/8068)
|
|
56
|
-
- Improve conversion of legacy filters with duplicate values. [#8542](https://github.com/mapbox/mapbox-gl-js/pull/8542)
|
|
57
|
-
|
|
58
|
-
## 13.7.2
|
|
59
|
-
|
|
60
|
-
### 🐛 Bug fixes
|
|
61
|
-
* Fix SDK support spec section for variable label placement ([#8384](https://github.com/mapbox/mapbox-gl-js/pull/8384)) (h/t [@pozdnyakov](https://github.com/pozdnyakov))
|
|
62
|
-
|
|
63
|
-
### ✨ Features and improvements
|
|
64
|
-
* Add SDK support spec section for text-radial-offset ([#8401](https://github.com/mapbox/mapbox-gl-js/pull/8401))
|
|
65
|
-
* Add `*-sort-key` layout property for circle, fill, line ([#8467](https://github.com/mapbox/mapbox-gl-js/pull/8467))
|
|
66
|
-
* Expose convertFilter API in the style specification ([#8493](https://github.com/mapbox/mapbox-gl-js/pull/8493))
|
|
67
|
-
|
|
68
|
-
## 13.7.1
|
|
69
|
-
|
|
70
|
-
### 🐛 Bug fixes
|
|
71
|
-
* Fix format expression options validation ([#8339](https://github.com/mapbox/mapbox-gl-js/pull/8339))
|
|
72
|
-
* Fix SDK support information for style properties added in v13.7.0: ([#8384](https://github.com/mapbox/mapbox-gl-js/pull/8384))
|
|
73
|
-
* Add missing SDK support section for `text-radial-offset` property
|
|
74
|
-
* Assign SDK versions for `text-variable-anchor` and `text-justify: auto`
|
|
75
|
-
|
|
76
|
-
## 13.7.0
|
|
77
|
-
|
|
78
|
-
### ✨ Features and improvements
|
|
79
|
-
* Add `text-radial-offset` style property ([#7596](https://github.com/mapbox/mapbox-gl-js/pull/7596))
|
|
80
|
-
* Add `text-variable-anchor` style property ([#7596](https://github.com/mapbox/mapbox-gl-js/pull/7596))
|
|
81
|
-
* Add `auto` value to `text-justify` style property ([#7596](https://github.com/mapbox/mapbox-gl-js/pull/7596))
|
|
82
|
-
|
|
83
|
-
## 13.6.0
|
|
84
|
-
|
|
85
|
-
### ✨ Features and improvements
|
|
86
|
-
* Add `clusterProperties` option for aggregated cluster properties ([#2412](https://github.com/mapbox/mapbox-gl-js/issues/2412), fixed by [#7584](https://github.com/mapbox/mapbox-gl-js/pull/7584))
|
|
87
|
-
* Add `number-format` expression ([#7626](https://github.com/mapbox/mapbox-gl-js/pull/7626))
|
|
88
|
-
* Add `symbol-sort-key` style property ([#7678](https://github.com/mapbox/mapbox-gl-js/pull/7678))
|
|
89
|
-
|
|
90
|
-
## 13.5.0
|
|
91
|
-
|
|
92
|
-
### Features and improvements
|
|
93
|
-
* Flattens `all` expressions in converted filters ([#7679](https://github.com/mapbox/mapbox-gl-js/pull/7679))
|
|
94
|
-
* Compatibility tables are updated ([#7574](https://github.com/mapbox/mapbox-gl-js/pull/7574))
|
|
95
|
-
|
|
96
|
-
## 13.4.0
|
|
97
|
-
|
|
98
|
-
### ✨ Features and improvements
|
|
99
|
-
* **Tighten style validation**
|
|
100
|
-
* Disallow expressions as stop values ([#7396](https://github.com/mapbox/mapbox-gl-js/pull/7396))
|
|
101
|
-
* Disallow `feature-state` expressions in filters ([#7366](https://github.com/mapbox/mapbox-gl-js/pull/7366))
|
|
102
|
-
|
|
103
|
-
## 13.3.0
|
|
104
|
-
|
|
105
|
-
### 🐛 Bug fixes
|
|
106
|
-
* **Expressions**
|
|
107
|
-
* Fix `let` expression stripping expected type during parsing ([#7300](https://github.com/mapbox/mapbox-gl-js/issues/7300), fixed by [#7301](https://github.com/mapbox/mapbox-gl-js/pull/7301))
|
|
108
|
-
* Fix superfluous wrapping of literals in `literal` expression ([#7336](https://github.com/mapbox/mapbox-gl-js/issues/7336), fixed by [#7337](https://github.com/mapbox/mapbox-gl-js/pull/7337))
|
|
109
|
-
* Allow calling `to-color` on values that are already of type `Color` ([#7260](https://github.com/mapbox/mapbox-gl-js/pull/7260))
|
|
110
|
-
* Fix `to-array` for empty arrays (([#7261](https://github.com/mapbox/mapbox-gl-js/pull/7261)))
|
|
111
|
-
* Fix identity functions for `text-field` when using formatted text ([#7351](https://github.com/mapbox/mapbox-gl-js/pull/7351))
|
|
112
|
-
* Fix coercion of `null` to `0` in `to-number` expression ([#7083](https://github.com/mapbox/mapbox-gl-js/issues/7083), fixed by [#7274](https://github.com/mapbox/mapbox-gl-js/pull/7274))
|
|
113
|
-
|
|
114
|
-
### ✨ Features and improvements
|
|
115
|
-
* Add `fill-extrusion-vertical-gradient` property for controlling shading of fill extrusions ([#5768](https://github.com/mapbox/mapbox-gl-js/issues/5768), fixed by [#6841](https://github.com/mapbox/mapbox-gl-js/pull/6841))
|
|
116
|
-
|
|
117
|
-
## 13.2.0
|
|
118
|
-
|
|
119
|
-
### 🐛 Bug fixes
|
|
120
|
-
* Update the style-spec's old `gl-style-migrate` script to include conversion of legacy functions and filters to their expression equivalents ([#6927](https://github.com/mapbox/mapbox-gl-js/issues/6927), fixed by [#7095](https://github.com/mapbox/mapbox-gl-js/pull/7095))
|
|
121
|
-
|
|
122
|
-
### ✨ Features and improvements
|
|
123
|
-
* Add `symbol-z-order` symbol layout property to style spec ([#7219](https://github.com/mapbox/mapbox-gl-js/pull/7219))
|
|
124
|
-
* Implement data-driven styling support for `*-pattern properties` ([#6289](https://github.com/mapbox/mapbox-gl-js/pull/6289))
|
|
125
|
-
|
|
126
|
-
## 13.1.1
|
|
127
|
-
|
|
128
|
-
### 🐛 Bug fixes
|
|
129
|
-
* Fix broken module import in mapboxgl-style-spec (v13.0.1) ([#6984](https://github.com/mapbox/mapbox-gl-js/issues/6984), fixed by [#6997](https://api.github.com/repos/mapbox/mapbox-gl-js/pulls/6997))
|
|
130
|
-
|
|
131
|
-
### ✨ Features and improvements
|
|
132
|
-
* Improve formatting for style output ([#7029](https://github.com/mapbox/mapbox-gl-js/pull/7029))
|
|
133
|
-
|
|
134
|
-
## 13.1.0
|
|
135
|
-
|
|
136
|
-
### ✨ Features and improvements
|
|
137
|
-
* Add `raster-resampling` raster paint property ([#6411](https://github.com/mapbox/mapbox-gl-js/pull/6411)) (h/t [andrewharvey](https://github.com/andrewharvey))
|
|
138
|
-
* Add `symbol-placement: line-center` ([#6821](https://github.com/mapbox/mapbox-gl-js/pull/6821))
|
|
139
|
-
|
|
140
|
-
## 13.0.1
|
|
141
|
-
|
|
142
|
-
### ⚠️ Breaking changes
|
|
143
|
-
* Align implicit type behavior of `match` expressions with with `case/==` ([#6684](https://github.com/mapbox/mapbox-gl-js/pull/6684))
|
|
144
|
-
* Update spec so that documentation can automatically capture which functions and expressions can be used with which properties ([#6521](https://github.com/mapbox/mapbox-gl-js/pull/6521))
|
|
145
|
-
|
|
146
|
-
### ✨ Features and improvements
|
|
147
|
-
* Add `feature-state` [#6263](https://github.com/mapbox/mapbox-gl-js/pull/6263)
|
|
148
|
-
* Add support for GeoJSON attribution ([#6364](https://github.com/mapbox/mapbox-gl-js/pull/6364)) (h/t [andrewharvey](https://github.com/andrewharvey))
|
|
149
|
-
* Upgrade to Flow 0.69 ([#6594](https://github.com/mapbox/mapbox-gl-js/pull/6594))
|
|
150
|
-
|
|
151
|
-
### 🐛 Bug fixes
|
|
152
|
-
* Use named exports for style-spec entrypoint module ([#6601](https://github.com/mapbox/mapbox-gl-js/issues/6601)
|
|
153
|
-
|
|
154
|
-
## 13.0.0
|
|
155
|
-
Malformed package published to NPM.
|
|
156
|
-
|
|
157
|
-
## 12.0.0
|
|
158
|
-
|
|
159
|
-
### ⚠️ Breaking changes
|
|
160
|
-
* The `"to-string"` expression operator now converts null to an empty string rather than to `"null"`. [#6534](https://github.com/mapbox/mapbox-gl-js/pull/6534)
|
|
161
|
-
|
|
162
|
-
### ✨ Features and improvements
|
|
163
|
-
* 🌈 Add line-gradient property [#6303](https://github.com/mapbox/mapbox-gl-js/pull/6303)
|
|
164
|
-
* Add collator expression for controlling case and diacritic sensitivity in string comparisons [#6270](https://github.com/mapbox/mapbox-gl-js/pull/6270)
|
|
165
|
-
* Add `is-supported-script` expression for determining if a script is supported. [#6260](https://github.com/mapbox/mapbox-gl-js/pull/6260)
|
|
166
|
-
* Add `collator` expression for controlling case and diacritic sensitivity in string comparisons [#6270](https://github.com/mapbox/mapbox-gl-js/pull/6270)
|
|
167
|
-
* Add `abs`, `round`, `floor`, and `ceil` expression operators [#6496](https://github.com/mapbox/mapbox-gl-js/pull/6496)
|
|
168
|
-
* Add support for Mapzen Terrarium tiles in raster-dem sources [#6110](https://github.com/mapbox/mapbox-gl-js/pull/6110)
|
|
169
|
-
|
|
170
|
-
### 🐛 Bug fixes
|
|
171
|
-
- Fix Rollup build [6575](https://github.com/mapbox/mapbox-gl-js/pull/6575)
|
|
172
|
-
|
|
173
|
-
## 11.1.1
|
|
174
|
-
|
|
175
|
-
### 🐛 Bug fixes
|
|
176
|
-
|
|
177
|
-
* Update SDK support information for `text-font`, and `heatmap-color`, and `hillshade` layer properties.
|
|
178
|
-
|
|
179
|
-
## 11.1.0
|
|
180
|
-
|
|
181
|
-
### ✨ Features and improvements
|
|
182
|
-
|
|
183
|
-
* Avoid use of `new Function` for filters by converting old-style filters to expressions [#5665](https://github.com/mapbox/mapbox-gl-js/pull/5665).
|
|
184
|
-
|
|
185
|
-
## 11.0.0
|
|
186
|
-
|
|
187
|
-
### ⚠️ Breaking changes
|
|
188
|
-
|
|
189
|
-
* Remove constants validating code [#5885](https://github.com/mapbox/mapbox-gl-js/pull/5885)
|
|
190
|
-
* `"colorSpace": "hcl"` now uses shortest-path interpolation for hue [#5811](https://github.com/mapbox/mapbox-gl-js/issues/5811)
|
|
191
|
-
|
|
192
|
-
### ✨ Features and improvements
|
|
193
|
-
|
|
194
|
-
* Introduce client-side hillshading with `raster-dem` source type and `hillshade` layer type [#5286](https://github.com/mapbox/mapbox-gl-js/pull/5286)
|
|
195
|
-
* Add Color#toString and expose Color publicly [#5866](https://github.com/mapbox/mapbox-gl-js/pull/5866)
|
|
196
|
-
* Improve typing for `==` and `!=` expressions [#5840](https://github.com/mapbox/mapbox-gl-js/pull/5840)
|
|
197
|
-
* Made `coalesce` expressions more useful [#5755](https://github.com/mapbox/mapbox-gl-js/issues/5755)
|
|
198
|
-
* Enable implicit type assertions for array types [#5738](https://github.com/mapbox/mapbox-gl-js/pull/5738)
|
|
199
|
-
|
|
200
|
-
### 🐛 Bug fixes
|
|
201
|
-
|
|
202
|
-
* Fix standalone browser build [#5736](https://github.com/mapbox/mapbox-gl-js/pull/5736), [#5906](https://github.com/mapbox/mapbox-gl-js/pull/5906)
|
|
203
|
-
* Handle NaN as input to step and interpolate expressions [#5757](https://github.com/mapbox/mapbox-gl-js/pull/5757)
|
|
204
|
-
* Fix style diffing for changes to GeoJSON sources [#5745](https://github.com/mapbox/mapbox-gl-js/pull/5745)
|
|
205
|
-
* Mark layer "type" property as required [#5849](https://github.com/mapbox/mapbox-gl-js/pull/5849)
|
|
206
|
-
|
|
207
|
-
## 10.1.0
|
|
208
|
-
|
|
209
|
-
* Remove support for validating and migrating v6 styles [#5604](https://github.com/mapbox/mapbox-gl-js/pull/5604)
|
|
210
|
-
* Remove support for validating v7 styles [#5604](https://github.com/mapbox/mapbox-gl-js/pull/5604)
|
|
211
|
-
* Remove spaces after commas in `to-string` representation of colors [#5480](https://github.com/mapbox/mapbox-gl-js/pull/5480)
|
|
212
|
-
* Fix bugs preventing `mapbox-gl-style-spec` package on NPM from being used externally [#5502](https://github.com/mapbox/mapbox-gl-js/pull/5502)
|
|
213
|
-
* Fix flow-typed interface generator [#5478](https://github.com/mapbox/mapbox-gl-js/pull/5478)
|
|
214
|
-
* Export `function` [#5584](https://github.com/mapbox/mapbox-gl-js/pull/5584)
|
|
215
|
-
* Export `StylePropertySpecification` type [#5593](https://github.com/mapbox/mapbox-gl-js/pull/5593)
|
|
216
|
-
* Split the `source_tile` entry in the JSON schema into `source_vector` and `source_raster` [#5604](https://github.com/mapbox/mapbox-gl-js/pull/5604)
|
|
217
|
-
|
|
218
|
-
### Validation Changes
|
|
219
|
-
|
|
220
|
-
* Require that `heatmap-color` use expressions instead of stop functions [#5624](https://github.com/mapbox/mapbox-gl-js/issues/5624)
|
|
221
|
-
* Remove support for including `{tokens}` in expressions for `text-field` and `icon-image` [#5599](https://github.com/mapbox/mapbox-gl-js/issues/5599)
|
|
222
|
-
* Disallow interpolation in expressions for `line-dasharray` [#5519](https://github.com/mapbox/mapbox-gl-js/pull/5519)
|
|
223
|
-
* Validate that zoom expressions only appear at the top level of an expression [#5609](https://github.com/mapbox/mapbox-gl-js/issues/5609)
|
|
224
|
-
* Validate that `step` and `interpolate` expressions don't have any duplicate stops [#5605](https://github.com/mapbox/mapbox-gl-js/issues/5605)
|
|
225
|
-
* Split `curve` expression into `step` and `interpolate` expressions [#5542](https://github.com/mapbox/mapbox-gl-js/pull/5542)
|
|
226
|
-
* Validate expression values for enum-typed properties [#5589](https://github.com/mapbox/mapbox-gl-js/pull/5589)
|
|
227
|
-
* Improve validation to catch uses of deprecated function syntax [#5667](https://github.com/mapbox/mapbox-gl-js/pull/5667)
|
|
228
|
-
|
|
229
|
-
## 10.0.1
|
|
230
|
-
|
|
231
|
-
* Fix bug preventing @mapbox/mapbox-gl-style-spec package from being usable outside of mapbox-gl-js (#5502)
|
|
232
|
-
|
|
233
|
-
## 10.0.0
|
|
234
|
-
|
|
235
|
-
* Add expression and heatmap layer support. See Mapbox GL JS v0.40.1 changelog entry for details.
|
|
236
|
-
|
|
237
|
-
## 9.0.1
|
|
238
|
-
|
|
239
|
-
* Remove `fast-stable-stringify` dependency (#5152)
|
|
240
|
-
|
|
241
|
-
## 9.0.0
|
|
242
|
-
|
|
243
|
-
* Fix validation error on categorical zoom-and-property functions (#4220)
|
|
244
|
-
* Relax requirement that styles using "icon-image" must have a "sprite"
|
|
245
|
-
* Prevent infinite loop in binarySearchForIndex when duplicate stops are present. (#4503)
|
|
246
|
-
* Ensure generated composite function stops are in the correct order (#4509)
|
|
247
|
-
* Update SDK support matrices to be current as of GL JS v0.35.1, iOS SDK v3.5.0, Android SDK 5.0.0
|
|
248
|
-
* Remove support for implicitly-categorical functions
|
|
249
|
-
* BREAKING CHANGE: the API for the `function` module has changed. The `interpolated` and `piecewise-constant` exports
|
|
250
|
-
were replaced with a single unnamed export, a function which accepts an object conforming to the style spec "function"
|
|
251
|
-
definition, and an object defining a style spec property. It handles color parsing and validation of feature values
|
|
252
|
-
internally.
|
|
253
|
-
* Functions now support a "default" property.
|
|
254
|
-
* `parseColor` was promoted from gl-js.
|
|
255
|
-
|
|
256
|
-
## 8.11.0
|
|
257
|
-
|
|
258
|
-
* Merge `feature-filter` repository into this repository #639
|
|
259
|
-
|
|
260
|
-
## 8.10.0
|
|
261
|
-
|
|
262
|
-
v8.0.0 styles are fully compatible with v8.10.0.
|
|
263
|
-
|
|
264
|
-
### Style Specification Changes
|
|
265
|
-
|
|
266
|
-
* Added `colorSpace` option to functions
|
|
267
|
-
* Added `fill-extrusion` layer type
|
|
268
|
-
* Add top-level `light` property
|
|
269
|
-
* Remove increase maximum `maxzoom` to 24
|
|
270
|
-
* Deprecate paint classes :warning:
|
|
271
|
-
* Increase strictness of function validation
|
|
272
|
-
|
|
273
|
-
### Reference JSON & API Changes
|
|
274
|
-
|
|
275
|
-
* Added `deref` utility
|
|
276
|
-
* Added `group_by_layout` utility
|
|
277
|
-
* Merge `mapbox-gl-function` repository into this repository
|
|
278
|
-
|
|
279
|
-
## 8.9.0
|
|
280
|
-
|
|
281
|
-
v8.0.0 styles are fully compatible with v8.9.0.
|
|
282
|
-
|
|
283
|
-
* Added identity functions
|
|
284
|
-
* Added `auto` value which represents the calculated default value
|
|
285
|
-
|
|
286
|
-
## 8.8.1
|
|
287
|
-
|
|
288
|
-
v8.0.0 styles are fully compatible with v8.8.1.
|
|
289
|
-
|
|
290
|
-
* Fixed style validation for layers with invalid types
|
|
291
|
-
|
|
292
|
-
## 8.8.0
|
|
293
|
-
|
|
294
|
-
v8.0.0 styles are fully compatible with v8.8.0.
|
|
295
|
-
|
|
296
|
-
* Clarified documentation around fill-opacity.
|
|
297
|
-
* Update function documentation and validation for property functions.
|
|
298
|
-
* Add text-pitch-alignment property.
|
|
299
|
-
* Add icon-text-fit, icon-text-fit-padding properties.
|
|
300
|
-
|
|
301
|
-
## 8.7.0
|
|
302
|
-
|
|
303
|
-
v8.0.0 styles are fully compatible with v8.7.0.
|
|
304
|
-
|
|
305
|
-
* Add support for has / !has operators.
|
|
306
|
-
|
|
307
|
-
## 8.6.0
|
|
308
|
-
|
|
309
|
-
v8.0.0 styles are fully compatible with v8.6.0.
|
|
310
|
-
|
|
311
|
-
* Added support for zoom and feature driven functions.
|
|
312
|
-
|
|
313
|
-
## 8.4.2
|
|
314
|
-
|
|
315
|
-
v8.0.0 styles are fully compatible with v8.4.2.
|
|
316
|
-
|
|
317
|
-
* Refactored style validator to expose more granular validation methods
|
|
318
|
-
|
|
319
|
-
## 8.4.1
|
|
320
|
-
|
|
321
|
-
v8.0.0 styles are fully compatible with v8.4.1.
|
|
322
|
-
|
|
323
|
-
* Revert ramp validation checks that broke some styles.
|
|
324
|
-
|
|
325
|
-
## 8.4.0
|
|
326
|
-
|
|
327
|
-
v8.0.0 styles are fully compatible with v8.4.0.
|
|
328
|
-
|
|
329
|
-
* Added `cluster`, `clusterRadius`, `clusterMaxZoom` GeoJSON source properties.
|
|
330
|
-
|
|
331
|
-
## 8.3.0
|
|
332
|
-
|
|
333
|
-
v8.0.0 styles are fully compatible with v8.3.0.
|
|
334
|
-
|
|
335
|
-
* Added `line-offset` style property
|
|
336
|
-
|
|
337
|
-
## 8.2.1
|
|
338
|
-
|
|
339
|
-
v8.0.0 styles are fully compatible with v8.2.1.
|
|
340
|
-
|
|
341
|
-
* Enforce that all layers that use a vector source specify a "source-layer"
|
|
342
|
-
|
|
343
|
-
## 8.2.0
|
|
344
|
-
|
|
345
|
-
v8.0.0 styles are fully compatible with v8.2.0.
|
|
346
|
-
|
|
347
|
-
* Add inline `example` property.
|
|
348
|
-
* Enforce that all style properties must have documentation in `doc` property.
|
|
349
|
-
* Create minified style specs with `doc` and `example` properties removed.
|
|
350
|
-
* `validate` now validates against minified style spec.
|
|
351
|
-
* `format` now accepts `space` option to use with `JSON.stringify`.
|
|
352
|
-
* Remove `gl-style-spritify`. Mapbox GL sprites are now created automatically by
|
|
353
|
-
the Mapbox style APIs, or for hand-crafted styles, by [spritezero-cli](https://github.com/mapbox/spritezero-cli).
|
|
354
|
-
|
|
355
|
-
## 8.1.0
|
|
356
|
-
|
|
357
|
-
v8.0.0 styles are fully compatible with v8.1.0.
|
|
358
|
-
|
|
359
|
-
* [BREAKING] Simplified layout/paint layer property types to more closely align
|
|
360
|
-
with v7 types.
|
|
361
|
-
* Fixed migration script compatibility with newer versions of Node.js and io.js
|
|
362
|
-
* Removed `constants` from schema, they were deprecated in v8
|
|
363
|
-
* Added style diff utility to generate semantic deltas between two stylesheets
|
|
364
|
-
* Added `visibility` property to `circle` layer type
|
|
365
|
-
* Added `pitch` property to stylesheet
|
|
366
|
-
|
|
367
|
-
## 8.0.0
|
|
368
|
-
|
|
369
|
-
Introduction of Mapbox GL style specification v8. To migrate a v7 style to v8,
|
|
370
|
-
use the `gl-style-migrate` script as described in the README.
|
|
371
|
-
|
|
372
|
-
* [BREAKING] The value of the `text-font` property is now an array of
|
|
373
|
-
strings, rather than a single comma separated string.
|
|
374
|
-
* [BREAKING] Renamed `symbol-min-distance` to `symbol-spacing`.
|
|
375
|
-
* [BREAKING] Renamed `background-image` to `background-pattern`.
|
|
376
|
-
* [BREAKING] Renamed `line-image` to `line-pattern`.
|
|
377
|
-
* [BREAKING] Renamed `fill-image` to `fill-pattern`.
|
|
378
|
-
* [BREAKING] Renamed the `url` property of the video source type to `urls`.
|
|
379
|
-
* [BREAKING] Coordinates in video sources are now specified in [lon, lat] order.
|
|
380
|
-
* [BREAKING] Removed `text-max-size` and `icon-max-size` properties; these
|
|
381
|
-
are now calculated automatically.
|
|
382
|
-
* [BREAKING] `text-size` and `icon-size` are now layout properties instead of paint properties.
|
|
383
|
-
* [BREAKING] Constants are no longer supported. If you are editing styles by
|
|
384
|
-
hand and want to use constants, you can use a preprocessing step with a tool
|
|
385
|
-
like [ScreeSS](https://github.com/screee/screess).
|
|
386
|
-
* [BREAKING] The format for `mapbox://` glyphs URLs has changed; you should
|
|
387
|
-
now use `mapbox://fonts/mapbox/{fontstack}/{range}.pbf`.
|
|
388
|
-
* [BREAKING] Reversed the priority of layers for calculating label placement:
|
|
389
|
-
labels for layers that appear later in the style now have priority over earlier
|
|
390
|
-
layers.
|
|
391
|
-
* Added a new `image` source type.
|
|
392
|
-
* Added a new `circle` layer type.
|
|
393
|
-
* Default map center location can now be set in the style.
|
|
394
|
-
* Added `mapbox://` sprite URLs `mapbox://sprite/{user | "mapbox"}/{id}`
|
|
395
|
-
|
|
396
|
-
## 7.5.0
|
|
397
|
-
|
|
398
|
-
* Added gl-style-composite script, for auto-compositing sources in a style.
|
|
399
|
-
|
|
400
|
-
## 7.4.1
|
|
401
|
-
|
|
402
|
-
* Use JSON.stringify for formatting instead of js-beautify
|
|
403
|
-
|
|
404
|
-
## 7.0.0
|
|
405
|
-
|
|
406
|
-
Introduction of Mapbox GL style specification v7.
|
|
407
|
-
|
|
408
|
-
* [BREAKING] Improve dashed lines (#234)
|
|
409
|
-
* [BREAKING] Remove prerendered layers (#232)
|
|
410
|
-
* Explicit visibility property (#212)
|
|
411
|
-
* Functions for all properties (#237)
|
|
412
|
-
|
|
413
|
-
## 6.0.0 (Style spec v6)
|
|
414
|
-
|
|
415
|
-
Introduction of Mapbox GL style specification v6.
|
|
416
|
-
|
|
417
|
-
* [BREAKING] New filter syntax (#178)
|
|
418
|
-
* [BREAKING] Line gap property (#131)
|
|
419
|
-
* [BREAKING] Remove dashes from min/max-zoom (#175)
|
|
420
|
-
* [BREAKING] New layout/paint terminology (#166)
|
|
421
|
-
* [BREAKING] Single text positioning property (#197)
|
|
422
|
-
* Added requirements (#200)
|
|
423
|
-
* Added minimum, maximum, and period values (#198)
|
|
424
|
-
|
|
425
|
-
## 0.0.5 (in progress)
|
|
426
|
-
|
|
427
|
-
* [BREAKING] Switch to suffix for transition properties (`transition-*` -> `*-transition`).
|
|
428
|
-
* Added support for remote, non-Mapbox TileJSON sources.
|
|
429
|
-
* [BREAKING] Source `minZoom` and `maxZoom` renamed to `minzoom` and `maxzoom to match TileJSON.
|
|
430
|
-
* Added support for `mapbox://` glyph URLs.
|
|
431
|
-
* [BREAKING] Renamed `raster-fade` to `raster-fade-duration`.
|
|
432
|
-
* Added background-opacity property.
|
|
433
|
-
* Added "tokens" property to string values that can autocomplete fields from layers
|
|
434
|
-
* Added "units" property to describe value types
|
|
435
|
-
|
|
436
|
-
## 0.0.4 (Aug 8 2014)
|
|
437
|
-
|
|
438
|
-
* Initial public release
|
package/src/style-spec/README.md
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# Mapbox GL style specification & utilities
|
|
2
|
-
|
|
3
|
-
This directory contains code and reference files that define the Mapbox GL style specification and provides some utilities for working with Mapbox styles.
|
|
4
|
-
|
|
5
|
-
## npm package
|
|
6
|
-
|
|
7
|
-
The Mapbox GL style specification and utilities are published as a seperate npm
|
|
8
|
-
package so that they can be installed without the bulk of GL JS.
|
|
9
|
-
|
|
10
|
-
npm install @mapbox/mapbox-gl-style-spec
|
|
11
|
-
|
|
12
|
-
## CLI Tools
|
|
13
|
-
|
|
14
|
-
If you install this package globally, you will have access to several CLI tools.
|
|
15
|
-
|
|
16
|
-
npm install @mapbox/mapbox-gl-style-spec --global
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### `gl-style-composite`
|
|
20
|
-
```bash
|
|
21
|
-
$ gl-style-composite style.json
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
Will take a non-composited style and produce a [composite style](https://www.mapbox.com/blog/better-label-placement-in-mapbox-studio/).
|
|
25
|
-
|
|
26
|
-
### `gl-style-migrate`
|
|
27
|
-
|
|
28
|
-
This repo contains scripts for migrating GL styles of any version to the latest version
|
|
29
|
-
(currently v8). Migrate a style like this:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
$ gl-style-migrate bright-v7.json > bright-v8.json
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
To migrate a file in place, you can use the `sponge` utility from the `moreutils` package:
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
$ brew install moreutils
|
|
39
|
-
$ gl-style-migrate bright.json | sponge bright.json
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### `gl-style-format`
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
$ gl-style-format style.json
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Will format the given style JSON to use standard indentation and sorted object keys.
|
|
49
|
-
|
|
50
|
-
### `gl-style-validate`
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
$ gl-style-validate style.json
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Will validate the given style JSON and print errors to stdout. Provide a
|
|
57
|
-
`--json` flag to get JSON output.
|
|
58
|
-
|
|
59
|
-
To validate that a style can be uploaded to the Mapbox Styles API, use the `--mapbox-api-supported` flag.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var fs = require('fs'),
|
|
5
|
-
argv = require('minimist')(process.argv.slice(2)),
|
|
6
|
-
format = require('../').format;
|
|
7
|
-
|
|
8
|
-
if (argv.help || argv.h || (!argv._.length && process.stdin.isTTY)) {
|
|
9
|
-
return help();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
console.log(format(JSON.parse(fs.readFileSync(argv._[0])), argv.space));
|
|
13
|
-
|
|
14
|
-
function help() {
|
|
15
|
-
console.log('usage:');
|
|
16
|
-
console.log(' gl-style-format source.json > destination.json');
|
|
17
|
-
console.log('');
|
|
18
|
-
console.log('options:');
|
|
19
|
-
console.log(' --space <num>');
|
|
20
|
-
console.log(' Number of spaces in output (default "2")');
|
|
21
|
-
console.log(' Pass "0" for minified output.');
|
|
22
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var argv = require('minimist')(process.argv.slice(2), {
|
|
5
|
-
boolean: 'json',
|
|
6
|
-
boolean: 'mapbox-api-supported'
|
|
7
|
-
}),
|
|
8
|
-
validate = require('../').validate,
|
|
9
|
-
validateMapboxApiSupported = require('../').validateMapboxApiSupported
|
|
10
|
-
rw = require('rw'),
|
|
11
|
-
status = 0;
|
|
12
|
-
|
|
13
|
-
if (argv.help || argv.h || (!argv._.length && process.stdin.isTTY)) {
|
|
14
|
-
return help();
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (!argv._.length) {
|
|
18
|
-
argv._.push('/dev/stdin');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
argv._.forEach(function(file) {
|
|
22
|
-
var errors;
|
|
23
|
-
if (argv['mapbox-api-supported']) {
|
|
24
|
-
errors = validateMapboxApiSupported(rw.readFileSync(file, 'utf8'));
|
|
25
|
-
} else {
|
|
26
|
-
errors = validate(rw.readFileSync(file, 'utf8'));
|
|
27
|
-
}
|
|
28
|
-
if (errors.length) {
|
|
29
|
-
if (argv.json) {
|
|
30
|
-
process.stdout.write(JSON.stringify(errors, null, 2));
|
|
31
|
-
} else {
|
|
32
|
-
errors.forEach(function (e) {
|
|
33
|
-
console.log('%s:%d: %s', file, e.line, e.message);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
status = 1;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
process.exit(status);
|
|
41
|
-
|
|
42
|
-
function help() {
|
|
43
|
-
console.log('usage:');
|
|
44
|
-
console.log(' gl-style-validate file.json');
|
|
45
|
-
console.log(' gl-style-validate < file.json');
|
|
46
|
-
console.log('');
|
|
47
|
-
console.log('options:');
|
|
48
|
-
console.log('--json output errors as json');
|
|
49
|
-
console.log('--mapbox-api-supported validate compatibility with Mapbox Styles API');
|
|
50
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export default function (style) {
|
|
3
|
-
const styleIDs = [];
|
|
4
|
-
const sourceIDs = [];
|
|
5
|
-
const compositedSourceLayers = [];
|
|
6
|
-
|
|
7
|
-
for (const id in style.sources) {
|
|
8
|
-
const source = style.sources[id];
|
|
9
|
-
|
|
10
|
-
if (source.type !== "vector")
|
|
11
|
-
continue;
|
|
12
|
-
|
|
13
|
-
const match = /^mapbox:\/\/(.*)/.exec(source.url);
|
|
14
|
-
if (!match)
|
|
15
|
-
continue;
|
|
16
|
-
|
|
17
|
-
styleIDs.push(id);
|
|
18
|
-
sourceIDs.push(match[1]);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (styleIDs.length < 2)
|
|
22
|
-
return style;
|
|
23
|
-
|
|
24
|
-
styleIDs.forEach((id) => {
|
|
25
|
-
delete style.sources[id];
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const compositeID = sourceIDs.join(",");
|
|
29
|
-
|
|
30
|
-
style.sources[compositeID] = {
|
|
31
|
-
"type": "vector",
|
|
32
|
-
"url": `mapbox://${compositeID}`
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
style.layers.forEach((layer) => {
|
|
36
|
-
if (styleIDs.indexOf(layer.source) >= 0) {
|
|
37
|
-
layer.source = compositeID;
|
|
38
|
-
|
|
39
|
-
if ('source-layer' in layer) {
|
|
40
|
-
if (compositedSourceLayers.indexOf(layer['source-layer']) >= 0) {
|
|
41
|
-
throw new Error('Conflicting source layer names');
|
|
42
|
-
} else {
|
|
43
|
-
compositedSourceLayers.push(layer['source-layer']);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
return style;
|
|
50
|
-
}
|