@scoova/mgl 1.0.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/LICENSE.txt +116 -0
- package/README.md +174 -0
- package/build/banner.ts +12 -0
- package/build/bump-version-changelog.js +26 -0
- package/build/check-bundle-size.js +77 -0
- package/build/generate-dist-package.js +26 -0
- package/build/generate-doc-images.ts +78 -0
- package/build/generate-docs.ts +190 -0
- package/build/generate-shaders.ts +68 -0
- package/build/generate-struct-arrays.ts +438 -0
- package/build/generate-style-code.ts +283 -0
- package/build/readme.md +56 -0
- package/build/release-notes.js +45 -0
- package/build/rollup/bundle_prelude.js +29 -0
- package/build/rollup/maplibregl.js +22 -0
- package/build/rollup_plugins.ts +58 -0
- package/dist/LICENSE.txt +116 -0
- package/dist/maplibre-gl.css +1 -0
- package/dist/maplibre-gl.d.ts +13304 -0
- package/dist/maplibre-gl.js +59 -0
- package/dist/maplibre-gl.js.map +1 -0
- package/dist/package.json +1 -0
- package/package.json +192 -0
- package/src/css/maplibre-gl.css +854 -0
- package/src/css/svg/maplibregl-ctrl-attrib.svg +3 -0
- package/src/css/svg/maplibregl-ctrl-compass.svg +4 -0
- package/src/css/svg/maplibregl-ctrl-fullscreen.svg +3 -0
- package/src/css/svg/maplibregl-ctrl-geolocate.svg +5 -0
- package/src/css/svg/maplibregl-ctrl-logo.svg +11 -0
- package/src/css/svg/maplibregl-ctrl-shrink.svg +3 -0
- package/src/css/svg/maplibregl-ctrl-terrain.svg +3 -0
- package/src/css/svg/maplibregl-ctrl-zoom-in.svg +3 -0
- package/src/css/svg/maplibregl-ctrl-zoom-out.svg +3 -0
- package/src/data/array_types.g.ts +1130 -0
- package/src/data/bucket/circle_attributes.ts +8 -0
- package/src/data/bucket/circle_bucket.ts +197 -0
- package/src/data/bucket/fill_attributes.ts +8 -0
- package/src/data/bucket/fill_bucket.test.ts +95 -0
- package/src/data/bucket/fill_bucket.ts +228 -0
- package/src/data/bucket/fill_extrusion_attributes.ts +13 -0
- package/src/data/bucket/fill_extrusion_bucket.ts +305 -0
- package/src/data/bucket/heatmap_bucket.ts +12 -0
- package/src/data/bucket/line_attributes.ts +8 -0
- package/src/data/bucket/line_attributes_ext.ts +8 -0
- package/src/data/bucket/line_bucket.test.ts +142 -0
- package/src/data/bucket/line_bucket.ts +592 -0
- package/src/data/bucket/pattern_attributes.ts +9 -0
- package/src/data/bucket/pattern_bucket_features.ts +57 -0
- package/src/data/bucket/symbol_attributes.ts +122 -0
- package/src/data/bucket/symbol_bucket.test.ts +243 -0
- package/src/data/bucket/symbol_bucket.ts +975 -0
- package/src/data/bucket.ts +123 -0
- package/src/data/dem_data.test.ts +237 -0
- package/src/data/dem_data.ts +171 -0
- package/src/data/evaluation_feature.ts +18 -0
- package/src/data/extent.ts +13 -0
- package/src/data/feature_index.ts +337 -0
- package/src/data/feature_position_map.test.ts +33 -0
- package/src/data/feature_position_map.ts +126 -0
- package/src/data/index_array_type.ts +9 -0
- package/src/data/load_geometry.test.ts +49 -0
- package/src/data/load_geometry.ts +44 -0
- package/src/data/pos3d_attributes.ts +5 -0
- package/src/data/pos_attributes.ts +5 -0
- package/src/data/program_configuration.ts +735 -0
- package/src/data/raster_bounds_attributes.ts +6 -0
- package/src/data/segment.ts +89 -0
- package/src/geo/edge_insets.test.ts +83 -0
- package/src/geo/edge_insets.ts +146 -0
- package/src/geo/lng_lat.test.ts +65 -0
- package/src/geo/lng_lat.ts +169 -0
- package/src/geo/lng_lat_bounds.test.ts +357 -0
- package/src/geo/lng_lat_bounds.ts +356 -0
- package/src/geo/mercator_coordinate.test.ts +34 -0
- package/src/geo/mercator_coordinate.ts +157 -0
- package/src/geo/projection/projection.ts +72 -0
- package/src/geo/transform.test.ts +509 -0
- package/src/geo/transform.ts +1072 -0
- package/src/gl/color_mode.ts +31 -0
- package/src/gl/context.ts +321 -0
- package/src/gl/cull_face_mode.ts +22 -0
- package/src/gl/depth_mode.ts +26 -0
- package/src/gl/framebuffer.ts +48 -0
- package/src/gl/index_buffer.ts +55 -0
- package/src/gl/render_pool.test.ts +69 -0
- package/src/gl/render_pool.ts +93 -0
- package/src/gl/state.test.ts +125 -0
- package/src/gl/stencil_mode.ts +27 -0
- package/src/gl/types.ts +59 -0
- package/src/gl/value.ts +534 -0
- package/src/gl/vertex_buffer.test.ts +57 -0
- package/src/gl/vertex_buffer.ts +111 -0
- package/src/gl/webgl2.ts +12 -0
- package/src/index.test.ts +121 -0
- package/src/index.ts +250 -0
- package/src/render/draw_background.ts +53 -0
- package/src/render/draw_circle.ts +113 -0
- package/src/render/draw_collision_debug.ts +168 -0
- package/src/render/draw_custom.test.ts +73 -0
- package/src/render/draw_custom.ts +45 -0
- package/src/render/draw_debug.test.ts +122 -0
- package/src/render/draw_debug.ts +148 -0
- package/src/render/draw_fill.test.ts +137 -0
- package/src/render/draw_fill.ts +128 -0
- package/src/render/draw_fill_extrusion.ts +97 -0
- package/src/render/draw_heatmap.ts +228 -0
- package/src/render/draw_hillshade.ts +119 -0
- package/src/render/draw_line.ts +125 -0
- package/src/render/draw_raster.ts +133 -0
- package/src/render/draw_sky.ts +44 -0
- package/src/render/draw_symbol.test.ts +223 -0
- package/src/render/draw_symbol.ts +499 -0
- package/src/render/draw_terrain.ts +99 -0
- package/src/render/glyph_atlas.ts +83 -0
- package/src/render/glyph_manager.test.ts +147 -0
- package/src/render/glyph_manager.ts +198 -0
- package/src/render/image_atlas.ts +159 -0
- package/src/render/image_manager.ts +337 -0
- package/src/render/line_atlas.test.ts +38 -0
- package/src/render/line_atlas.ts +214 -0
- package/src/render/mesh.ts +25 -0
- package/src/render/painter.test.ts +51 -0
- package/src/render/painter.ts +666 -0
- package/src/render/program/background_program.ts +100 -0
- package/src/render/program/circle_program.ts +61 -0
- package/src/render/program/clipping_mask_program.ts +19 -0
- package/src/render/program/collision_program.ts +47 -0
- package/src/render/program/debug_program.ts +29 -0
- package/src/render/program/fill_extrusion_program.ts +120 -0
- package/src/render/program/fill_program.ts +121 -0
- package/src/render/program/heatmap_program.ts +76 -0
- package/src/render/program/hillshade_program.ts +116 -0
- package/src/render/program/line_program.ts +207 -0
- package/src/render/program/pattern.ts +102 -0
- package/src/render/program/program_uniforms.ts +46 -0
- package/src/render/program/raster_program.ts +88 -0
- package/src/render/program/sky_program.ts +28 -0
- package/src/render/program/symbol_program.ts +266 -0
- package/src/render/program/terrain_program.ts +116 -0
- package/src/render/program.ts +233 -0
- package/src/render/render_to_texture.test.ts +151 -0
- package/src/render/render_to_texture.ts +197 -0
- package/src/render/terrain.test.ts +322 -0
- package/src/render/terrain.ts +464 -0
- package/src/render/texture.ts +114 -0
- package/src/render/uniform_binding.test.ts +122 -0
- package/src/render/uniform_binding.ts +157 -0
- package/src/render/update_pattern_positions_in_program.test.ts +74 -0
- package/src/render/update_pattern_positions_in_program.ts +50 -0
- package/src/render/vertex_array_object.ts +163 -0
- package/src/shaders/README.md +42 -0
- package/src/shaders/_prelude.fragment.glsl +19 -0
- package/src/shaders/_prelude.fragment.glsl.g.ts +2 -0
- package/src/shaders/_prelude.vertex.glsl +148 -0
- package/src/shaders/_prelude.vertex.glsl.g.ts +2 -0
- package/src/shaders/background.fragment.glsl +10 -0
- package/src/shaders/background.fragment.glsl.g.ts +2 -0
- package/src/shaders/background.vertex.glsl +7 -0
- package/src/shaders/background.vertex.glsl.g.ts +2 -0
- package/src/shaders/background_pattern.fragment.glsl +28 -0
- package/src/shaders/background_pattern.fragment.glsl.g.ts +2 -0
- package/src/shaders/background_pattern.vertex.glsl +19 -0
- package/src/shaders/background_pattern.vertex.glsl.g.ts +2 -0
- package/src/shaders/circle.fragment.glsl +34 -0
- package/src/shaders/circle.fragment.glsl.g.ts +2 -0
- package/src/shaders/circle.vertex.glsl +68 -0
- package/src/shaders/circle.vertex.glsl.g.ts +2 -0
- package/src/shaders/clipping_mask.fragment.glsl +3 -0
- package/src/shaders/clipping_mask.fragment.glsl.g.ts +2 -0
- package/src/shaders/clipping_mask.vertex.glsl +7 -0
- package/src/shaders/clipping_mask.vertex.glsl.g.ts +2 -0
- package/src/shaders/collision_box.fragment.glsl +20 -0
- package/src/shaders/collision_box.fragment.glsl.g.ts +2 -0
- package/src/shaders/collision_box.vertex.glsl +27 -0
- package/src/shaders/collision_box.vertex.glsl.g.ts +2 -0
- package/src/shaders/collision_circle.fragment.glsl +17 -0
- package/src/shaders/collision_circle.fragment.glsl.g.ts +2 -0
- package/src/shaders/collision_circle.vertex.glsl +59 -0
- package/src/shaders/collision_circle.vertex.glsl.g.ts +2 -0
- package/src/shaders/debug.fragment.glsl +9 -0
- package/src/shaders/debug.fragment.glsl.g.ts +2 -0
- package/src/shaders/debug.vertex.glsl +12 -0
- package/src/shaders/debug.vertex.glsl.g.ts +2 -0
- package/src/shaders/encode_attribute.test.ts +11 -0
- package/src/shaders/encode_attribute.ts +13 -0
- package/src/shaders/fill.fragment.glsl +13 -0
- package/src/shaders/fill.fragment.glsl.g.ts +2 -0
- package/src/shaders/fill.vertex.glsl +13 -0
- package/src/shaders/fill.vertex.glsl.g.ts +2 -0
- package/src/shaders/fill_extrusion.fragment.glsl +9 -0
- package/src/shaders/fill_extrusion.fragment.glsl.g.ts +2 -0
- package/src/shaders/fill_extrusion.vertex.glsl +84 -0
- package/src/shaders/fill_extrusion.vertex.glsl.g.ts +2 -0
- package/src/shaders/fill_extrusion_pattern.fragment.glsl +47 -0
- package/src/shaders/fill_extrusion_pattern.fragment.glsl.g.ts +2 -0
- package/src/shaders/fill_extrusion_pattern.vertex.glsl +96 -0
- package/src/shaders/fill_extrusion_pattern.vertex.glsl.g.ts +2 -0
- package/src/shaders/fill_outline.fragment.glsl +17 -0
- package/src/shaders/fill_outline.fragment.glsl.g.ts +2 -0
- package/src/shaders/fill_outline.vertex.glsl +17 -0
- package/src/shaders/fill_outline.vertex.glsl.g.ts +2 -0
- package/src/shaders/fill_outline_pattern.fragment.glsl +43 -0
- package/src/shaders/fill_outline_pattern.fragment.glsl.g.ts +2 -0
- package/src/shaders/fill_outline_pattern.vertex.glsl +44 -0
- package/src/shaders/fill_outline_pattern.vertex.glsl.g.ts +2 -0
- package/src/shaders/fill_pattern.fragment.glsl +39 -0
- package/src/shaders/fill_pattern.fragment.glsl.g.ts +2 -0
- package/src/shaders/fill_pattern.vertex.glsl +39 -0
- package/src/shaders/fill_pattern.vertex.glsl.g.ts +2 -0
- package/src/shaders/heatmap.fragment.glsl +22 -0
- package/src/shaders/heatmap.fragment.glsl.g.ts +2 -0
- package/src/shaders/heatmap.vertex.glsl +54 -0
- package/src/shaders/heatmap.vertex.glsl.g.ts +2 -0
- package/src/shaders/heatmap_texture.fragment.glsl +15 -0
- package/src/shaders/heatmap_texture.fragment.glsl.g.ts +2 -0
- package/src/shaders/heatmap_texture.vertex.glsl +11 -0
- package/src/shaders/heatmap_texture.vertex.glsl.g.ts +2 -0
- package/src/shaders/hillshade.fragment.glsl +52 -0
- package/src/shaders/hillshade.fragment.glsl.g.ts +2 -0
- package/src/shaders/hillshade.vertex.glsl +11 -0
- package/src/shaders/hillshade.vertex.glsl.g.ts +2 -0
- package/src/shaders/hillshade_prepare.fragment.glsl +77 -0
- package/src/shaders/hillshade_prepare.fragment.glsl.g.ts +2 -0
- package/src/shaders/hillshade_prepare.vertex.glsl +15 -0
- package/src/shaders/hillshade_prepare.vertex.glsl.g.ts +2 -0
- package/src/shaders/line.fragment.glsl +30 -0
- package/src/shaders/line.fragment.glsl.g.ts +2 -0
- package/src/shaders/line.vertex.glsl +89 -0
- package/src/shaders/line.vertex.glsl.g.ts +2 -0
- package/src/shaders/line_gradient.fragment.glsl +34 -0
- package/src/shaders/line_gradient.fragment.glsl.g.ts +2 -0
- package/src/shaders/line_gradient.vertex.glsl +92 -0
- package/src/shaders/line_gradient.vertex.glsl.g.ts +2 -0
- package/src/shaders/line_pattern.fragment.glsl +77 -0
- package/src/shaders/line_pattern.fragment.glsl.g.ts +2 -0
- package/src/shaders/line_pattern.vertex.glsl +103 -0
- package/src/shaders/line_pattern.vertex.glsl.g.ts +2 -0
- package/src/shaders/line_sdf.fragment.glsl +45 -0
- package/src/shaders/line_sdf.fragment.glsl.g.ts +2 -0
- package/src/shaders/line_sdf.vertex.glsl +101 -0
- package/src/shaders/line_sdf.vertex.glsl.g.ts +2 -0
- package/src/shaders/raster.fragment.glsl +53 -0
- package/src/shaders/raster.fragment.glsl.g.ts +2 -0
- package/src/shaders/raster.vertex.glsl +21 -0
- package/src/shaders/raster.vertex.glsl.g.ts +2 -0
- package/src/shaders/shaders.ts +197 -0
- package/src/shaders/sky.fragment.glsl +17 -0
- package/src/shaders/sky.fragment.glsl.g.ts +2 -0
- package/src/shaders/sky.vertex.glsl +5 -0
- package/src/shaders/sky.vertex.glsl.g.ts +2 -0
- package/src/shaders/symbol_icon.fragment.glsl +17 -0
- package/src/shaders/symbol_icon.fragment.glsl.g.ts +2 -0
- package/src/shaders/symbol_icon.vertex.glsl +117 -0
- package/src/shaders/symbol_icon.vertex.glsl.g.ts +2 -0
- package/src/shaders/symbol_sdf.fragment.glsl +58 -0
- package/src/shaders/symbol_sdf.fragment.glsl.g.ts +2 -0
- package/src/shaders/symbol_sdf.vertex.glsl +142 -0
- package/src/shaders/symbol_sdf.vertex.glsl.g.ts +2 -0
- package/src/shaders/symbol_text_and_icon.fragment.glsl +68 -0
- package/src/shaders/symbol_text_and_icon.fragment.glsl.g.ts +2 -0
- package/src/shaders/symbol_text_and_icon.vertex.glsl +140 -0
- package/src/shaders/symbol_text_and_icon.vertex.glsl.g.ts +2 -0
- package/src/shaders/terrain.fragment.glsl +32 -0
- package/src/shaders/terrain.fragment.glsl.g.ts +2 -0
- package/src/shaders/terrain.vertex.glsl +17 -0
- package/src/shaders/terrain.vertex.glsl.g.ts +2 -0
- package/src/shaders/terrain_coords.fragment.glsl +11 -0
- package/src/shaders/terrain_coords.fragment.glsl.g.ts +2 -0
- package/src/shaders/terrain_coords.vertex.glsl +13 -0
- package/src/shaders/terrain_coords.vertex.glsl.g.ts +2 -0
- package/src/shaders/terrain_depth.fragment.glsl +15 -0
- package/src/shaders/terrain_depth.fragment.glsl.g.ts +2 -0
- package/src/shaders/terrain_depth.vertex.glsl +13 -0
- package/src/shaders/terrain_depth.vertex.glsl.g.ts +2 -0
- package/src/source/canvas_source.test.ts +210 -0
- package/src/source/canvas_source.ts +227 -0
- package/src/source/geojson_source.test.ts +492 -0
- package/src/source/geojson_source.ts +431 -0
- package/src/source/geojson_source_diff.test.ts +364 -0
- package/src/source/geojson_source_diff.ts +172 -0
- package/src/source/geojson_worker_source.test.ts +399 -0
- package/src/source/geojson_worker_source.ts +303 -0
- package/src/source/geojson_wrapper.test.ts +32 -0
- package/src/source/geojson_wrapper.ts +81 -0
- package/src/source/image_source.test.ts +235 -0
- package/src/source/image_source.ts +338 -0
- package/src/source/load_tilejson.ts +47 -0
- package/src/source/pixels_to_tile_units.ts +25 -0
- package/src/source/protocol_crud.ts +48 -0
- package/src/source/query_features.test.ts +31 -0
- package/src/source/query_features.ts +252 -0
- package/src/source/raster_dem_tile_source.test.ts +158 -0
- package/src/source/raster_dem_tile_source.ts +166 -0
- package/src/source/raster_dem_tile_worker_source.test.ts +36 -0
- package/src/source/raster_dem_tile_worker_source.ts +38 -0
- package/src/source/raster_tile_source.test.ts +206 -0
- package/src/source/raster_tile_source.ts +227 -0
- package/src/source/rtl_text_plugin_main_thread.test.ts +170 -0
- package/src/source/rtl_text_plugin_main_thread.ts +89 -0
- package/src/source/rtl_text_plugin_status.ts +33 -0
- package/src/source/rtl_text_plugin_worker.ts +49 -0
- package/src/source/source.test.ts +41 -0
- package/src/source/source.ts +186 -0
- package/src/source/source_cache.test.ts +2069 -0
- package/src/source/source_cache.ts +1102 -0
- package/src/source/source_state.ts +157 -0
- package/src/source/terrain_source_cache.test.ts +105 -0
- package/src/source/terrain_source_cache.ts +204 -0
- package/src/source/tile.test.ts +290 -0
- package/src/source/tile.ts +478 -0
- package/src/source/tile_bounds.ts +34 -0
- package/src/source/tile_cache.test.ts +130 -0
- package/src/source/tile_cache.ts +208 -0
- package/src/source/tile_id.test.ts +112 -0
- package/src/source/tile_id.ts +221 -0
- package/src/source/vector_tile_source.test.ts +401 -0
- package/src/source/vector_tile_source.ts +283 -0
- package/src/source/vector_tile_worker_source.test.ts +396 -0
- package/src/source/vector_tile_worker_source.ts +199 -0
- package/src/source/video_source.test.ts +124 -0
- package/src/source/video_source.ts +204 -0
- package/src/source/worker.test.ts +233 -0
- package/src/source/worker.ts +301 -0
- package/src/source/worker_source.ts +117 -0
- package/src/source/worker_tile.test.ts +226 -0
- package/src/source/worker_tile.ts +208 -0
- package/src/style/create_style_layer.ts +39 -0
- package/src/style/evaluation_parameters.ts +62 -0
- package/src/style/format_section_override.test.ts +62 -0
- package/src/style/format_section_override.ts +50 -0
- package/src/style/light.test.ts +86 -0
- package/src/style/light.ts +135 -0
- package/src/style/load_glyph_range.test.ts +40 -0
- package/src/style/load_glyph_range.ts +32 -0
- package/src/style/load_sprite.test.ts +227 -0
- package/src/style/load_sprite.ts +71 -0
- package/src/style/parse_glyph_pbf.ts +42 -0
- package/src/style/pauseable_placement.ts +138 -0
- package/src/style/properties.ts +726 -0
- package/src/style/query_utils.test.ts +107 -0
- package/src/style/query_utils.ts +70 -0
- package/src/style/sky.ts +127 -0
- package/src/style/style.test.ts +2654 -0
- package/src/style/style.ts +1814 -0
- package/src/style/style_glyph.ts +25 -0
- package/src/style/style_image.ts +188 -0
- package/src/style/style_layer/background_style_layer.ts +17 -0
- package/src/style/style_layer/background_style_layer_properties.g.ts +40 -0
- package/src/style/style_layer/circle_style_layer.ts +98 -0
- package/src/style/style_layer/circle_style_layer_properties.g.ts +76 -0
- package/src/style/style_layer/custom_style_layer.ts +233 -0
- package/src/style/style_layer/fill_extrusion_style_layer.ts +224 -0
- package/src/style/style_layer/fill_extrusion_style_layer_properties.g.ts +55 -0
- package/src/style/style_layer/fill_style_layer.test.ts +37 -0
- package/src/style/style_layer/fill_style_layer.ts +65 -0
- package/src/style/style_layer/fill_style_layer_properties.g.ts +64 -0
- package/src/style/style_layer/heatmap_style_layer.ts +74 -0
- package/src/style/style_layer/heatmap_style_layer_properties.g.ts +46 -0
- package/src/style/style_layer/hillshade_style_layer.ts +21 -0
- package/src/style/style_layer/hillshade_style_layer_properties.g.ts +49 -0
- package/src/style/style_layer/line_style_layer.test.ts +50 -0
- package/src/style/style_layer/line_style_layer.ts +131 -0
- package/src/style/style_layer/line_style_layer_properties.g.ts +88 -0
- package/src/style/style_layer/overlap_mode.test.ts +57 -0
- package/src/style/style_layer/overlap_mode.ts +25 -0
- package/src/style/style_layer/raster_style_layer.ts +17 -0
- package/src/style/style_layer/raster_style_layer_properties.g.ts +55 -0
- package/src/style/style_layer/symbol_style_layer.ts +195 -0
- package/src/style/style_layer/symbol_style_layer_properties.g.ts +218 -0
- package/src/style/style_layer/typed_style_layer.ts +9 -0
- package/src/style/style_layer/variable_text_anchor.test.ts +117 -0
- package/src/style/style_layer/variable_text_anchor.ts +163 -0
- package/src/style/style_layer.test.ts +372 -0
- package/src/style/style_layer.ts +287 -0
- package/src/style/style_layer_index.test.ts +99 -0
- package/src/style/style_layer_index.ts +78 -0
- package/src/style/validate_style.ts +53 -0
- package/src/style/zoom_history.ts +40 -0
- package/src/symbol/anchor.test.ts +14 -0
- package/src/symbol/anchor.ts +22 -0
- package/src/symbol/check_max_angle.test.ts +54 -0
- package/src/symbol/check_max_angle.ts +76 -0
- package/src/symbol/clip_line.test.ts +154 -0
- package/src/symbol/clip_line.ts +66 -0
- package/src/symbol/collision_feature.test.ts +98 -0
- package/src/symbol/collision_feature.ts +114 -0
- package/src/symbol/collision_index.test.ts +19 -0
- package/src/symbol/collision_index.ts +618 -0
- package/src/symbol/cross_tile_symbol_index.test.ts +260 -0
- package/src/symbol/cross_tile_symbol_index.ts +367 -0
- package/src/symbol/get_anchors.test.ts +113 -0
- package/src/symbol/get_anchors.ts +167 -0
- package/src/symbol/grid_index.test.ts +75 -0
- package/src/symbol/grid_index.ts +414 -0
- package/src/symbol/merge_lines.test.ts +30 -0
- package/src/symbol/merge_lines.ts +80 -0
- package/src/symbol/one_em.ts +3 -0
- package/src/symbol/opacity_state.ts +23 -0
- package/src/symbol/path_interpolator.test.ts +134 -0
- package/src/symbol/path_interpolator.ts +55 -0
- package/src/symbol/placement.ts +1371 -0
- package/src/symbol/projection.test.ts +171 -0
- package/src/symbol/projection.ts +833 -0
- package/src/symbol/quads.test.ts +157 -0
- package/src/symbol/quads.ts +349 -0
- package/src/symbol/shaping.test.ts +360 -0
- package/src/symbol/shaping.ts +911 -0
- package/src/symbol/symbol_layout.ts +739 -0
- package/src/symbol/symbol_size.ts +129 -0
- package/src/symbol/symbol_style_layer.test.ts +103 -0
- package/src/symbol/transform_text.ts +27 -0
- package/src/ui/anchor.ts +27 -0
- package/src/ui/camera.test.ts +2301 -0
- package/src/ui/camera.ts +1520 -0
- package/src/ui/control/attribution_control.test.ts +543 -0
- package/src/ui/control/attribution_control.ts +209 -0
- package/src/ui/control/control.ts +67 -0
- package/src/ui/control/fullscreen_control.test.ts +114 -0
- package/src/ui/control/fullscreen_control.ts +189 -0
- package/src/ui/control/geolocate_control.test.ts +619 -0
- package/src/ui/control/geolocate_control.ts +725 -0
- package/src/ui/control/logo_control.test.ts +88 -0
- package/src/ui/control/logo_control.ts +86 -0
- package/src/ui/control/navigation_control.test.ts +238 -0
- package/src/ui/control/navigation_control.ts +294 -0
- package/src/ui/control/scale_control.test.ts +52 -0
- package/src/ui/control/scale_control.ts +152 -0
- package/src/ui/control/terrain_control.test.ts +58 -0
- package/src/ui/control/terrain_control.ts +74 -0
- package/src/ui/default_locale.ts +25 -0
- package/src/ui/events.ts +758 -0
- package/src/ui/handler/box_zoom.test.ts +163 -0
- package/src/ui/handler/box_zoom.ts +171 -0
- package/src/ui/handler/click_zoom.ts +55 -0
- package/src/ui/handler/cooperative_gestures.test.ts +338 -0
- package/src/ui/handler/cooperative_gestures.ts +111 -0
- package/src/ui/handler/dblclick_zoom.test.ts +151 -0
- package/src/ui/handler/drag_handler.ts +174 -0
- package/src/ui/handler/drag_move_state_manager.ts +115 -0
- package/src/ui/handler/drag_pan.test.ts +487 -0
- package/src/ui/handler/drag_rotate.test.ts +859 -0
- package/src/ui/handler/handler_util.ts +10 -0
- package/src/ui/handler/keyboard.test.ts +235 -0
- package/src/ui/handler/keyboard.ts +212 -0
- package/src/ui/handler/map_event.test.ts +158 -0
- package/src/ui/handler/map_event.ts +161 -0
- package/src/ui/handler/mouse.ts +92 -0
- package/src/ui/handler/mouse_handler_interface.test.ts +111 -0
- package/src/ui/handler/mouse_rotate.test.ts +62 -0
- package/src/ui/handler/one_finger_touch_drag.ts +45 -0
- package/src/ui/handler/one_finger_touch_drag_handler_interface.test.ts +77 -0
- package/src/ui/handler/scroll_zoom.test.ts +382 -0
- package/src/ui/handler/scroll_zoom.ts +379 -0
- package/src/ui/handler/shim/dblclick_zoom.ts +64 -0
- package/src/ui/handler/shim/drag_pan.ts +104 -0
- package/src/ui/handler/shim/drag_rotate.ts +76 -0
- package/src/ui/handler/shim/two_fingers_touch.ts +112 -0
- package/src/ui/handler/tap_drag_zoom.test.ts +113 -0
- package/src/ui/handler/tap_drag_zoom.ts +112 -0
- package/src/ui/handler/tap_recognizer.ts +138 -0
- package/src/ui/handler/tap_zoom.ts +98 -0
- package/src/ui/handler/touch_pan.ts +115 -0
- package/src/ui/handler/transform-provider.ts +44 -0
- package/src/ui/handler/two_fingers_touch.test.ts +283 -0
- package/src/ui/handler/two_fingers_touch.ts +336 -0
- package/src/ui/handler_inertia.ts +157 -0
- package/src/ui/handler_manager.ts +637 -0
- package/src/ui/hash.test.ts +404 -0
- package/src/ui/hash.ts +153 -0
- package/src/ui/map.ts +3393 -0
- package/src/ui/map_tests/map_animation.test.ts +61 -0
- package/src/ui/map_tests/map_basic.test.ts +223 -0
- package/src/ui/map_tests/map_bounds.test.ts +123 -0
- package/src/ui/map_tests/map_calculate_camera_options.test.ts +113 -0
- package/src/ui/map_tests/map_canvas.test.ts +59 -0
- package/src/ui/map_tests/map_control.test.ts +61 -0
- package/src/ui/map_tests/map_disable_handlers.test.ts +38 -0
- package/src/ui/map_tests/map_events.test.ts +1001 -0
- package/src/ui/map_tests/map_feature_state.test.ts +421 -0
- package/src/ui/map_tests/map_images.test.ts +175 -0
- package/src/ui/map_tests/map_is_moving.test.ts +164 -0
- package/src/ui/map_tests/map_is_rotating.test.ts +62 -0
- package/src/ui/map_tests/map_is_zooming.test.ts +86 -0
- package/src/ui/map_tests/map_layer.test.ts +457 -0
- package/src/ui/map_tests/map_options.test.ts +64 -0
- package/src/ui/map_tests/map_pitch.test.ts +90 -0
- package/src/ui/map_tests/map_pixel_ratio.test.ts +75 -0
- package/src/ui/map_tests/map_query_rendered_features.test.ts +93 -0
- package/src/ui/map_tests/map_render.test.ts +90 -0
- package/src/ui/map_tests/map_request_render_frame.test.ts +51 -0
- package/src/ui/map_tests/map_resize.test.ts +120 -0
- package/src/ui/map_tests/map_style.test.ts +541 -0
- package/src/ui/map_tests/map_terrian.test.ts +104 -0
- package/src/ui/map_tests/map_webgl.test.ts +72 -0
- package/src/ui/map_tests/map_world_copies.test.ts +103 -0
- package/src/ui/map_tests/map_zoom.test.ts +95 -0
- package/src/ui/marker.test.ts +1149 -0
- package/src/ui/marker.ts +880 -0
- package/src/ui/popup.test.ts +827 -0
- package/src/ui/popup.ts +717 -0
- package/src/util/abort_error.ts +21 -0
- package/src/util/actor.test.ts +218 -0
- package/src/util/actor.ts +241 -0
- package/src/util/actor_messages.ts +149 -0
- package/src/util/ajax.test.ts +237 -0
- package/src/util/ajax.ts +297 -0
- package/src/util/browser.test.ts +23 -0
- package/src/util/browser.ts +63 -0
- package/src/util/color_ramp.test.ts +105 -0
- package/src/util/color_ramp.ts +56 -0
- package/src/util/config.ts +29 -0
- package/src/util/dictionary_coder.ts +23 -0
- package/src/util/dispatcher.test.ts +76 -0
- package/src/util/dispatcher.ts +78 -0
- package/src/util/dom.ts +135 -0
- package/src/util/evented.test.ts +231 -0
- package/src/util/evented.ts +178 -0
- package/src/util/find_pole_of_inaccessibility.test.ts +21 -0
- package/src/util/find_pole_of_inaccessibility.ts +130 -0
- package/src/util/geolocation_support.test.ts +43 -0
- package/src/util/geolocation_support.ts +23 -0
- package/src/util/global_worker_pool.ts +65 -0
- package/src/util/image.ts +150 -0
- package/src/util/image_request.test.ts +408 -0
- package/src/util/image_request.ts +246 -0
- package/src/util/intersection_tests.ts +206 -0
- package/src/util/is_char_in_unicode_block.test.ts +15 -0
- package/src/util/is_char_in_unicode_block.ts +345 -0
- package/src/util/offscreen_canvas_distorted.test.ts +13 -0
- package/src/util/offscreen_canvas_distorted.ts +39 -0
- package/src/util/offscreen_canvas_supported.ts +11 -0
- package/src/util/performance.ts +117 -0
- package/src/util/primitives.test.ts +140 -0
- package/src/util/primitives.ts +143 -0
- package/src/util/request_manager.ts +42 -0
- package/src/util/resolve_tokens.test.ts +45 -0
- package/src/util/resolve_tokens.ts +17 -0
- package/src/util/script_detection.test.ts +138 -0
- package/src/util/script_detection.ts +376 -0
- package/src/util/smart_wrap.test.ts +97 -0
- package/src/util/smart_wrap.ts +58 -0
- package/src/util/struct_array.test.ts +101 -0
- package/src/util/struct_array.ts +246 -0
- package/src/util/style.test.ts +34 -0
- package/src/util/style.ts +28 -0
- package/src/util/task_queue.test.ts +114 -0
- package/src/util/task_queue.ts +64 -0
- package/src/util/test/util.ts +185 -0
- package/src/util/throttle.test.ts +42 -0
- package/src/util/throttle.ts +28 -0
- package/src/util/throttled_invoker.ts +41 -0
- package/src/util/transferable_grid_index.test.ts +56 -0
- package/src/util/transferable_grid_index.ts +214 -0
- package/src/util/util.test.ts +414 -0
- package/src/util/util.ts +724 -0
- package/src/util/vectortile_to_geojson.ts +72 -0
- package/src/util/verticalize_punctuation.ts +110 -0
- package/src/util/web_worker.ts +16 -0
- package/src/util/web_worker_transfer.test.ts +153 -0
- package/src/util/web_worker_transfer.ts +254 -0
- package/src/util/webp_supported.ts +63 -0
- package/src/util/worker_pool.test.ts +43 -0
- package/src/util/worker_pool.ts +58 -0
- package/src/util/world_bounds.test.ts +59 -0
- package/src/util/world_bounds.ts +46 -0
|
@@ -0,0 +1,854 @@
|
|
|
1
|
+
.maplibregl-map {
|
|
2
|
+
font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
position: relative;
|
|
5
|
+
-webkit-tap-highlight-color: rgb(0 0 0 / 0%);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.maplibregl-canvas {
|
|
9
|
+
position: absolute;
|
|
10
|
+
left: 0;
|
|
11
|
+
top: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.maplibregl-map:fullscreen {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.maplibregl-ctrl-group button.maplibregl-ctrl-compass {
|
|
20
|
+
touch-action: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.maplibregl-canvas-container.maplibregl-interactive,
|
|
24
|
+
.maplibregl-ctrl-group button.maplibregl-ctrl-compass {
|
|
25
|
+
cursor: grab;
|
|
26
|
+
user-select: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.maplibregl-canvas-container.maplibregl-interactive:active,
|
|
34
|
+
.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active {
|
|
35
|
+
cursor: grabbing;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,
|
|
39
|
+
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas {
|
|
40
|
+
touch-action: pan-x pan-y;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.maplibregl-canvas-container.maplibregl-touch-drag-pan,
|
|
44
|
+
.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas {
|
|
45
|
+
touch-action: pinch-zoom;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,
|
|
49
|
+
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas {
|
|
50
|
+
touch-action: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,
|
|
54
|
+
.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas {
|
|
55
|
+
touch-action: pan-x pan-y;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.maplibregl-ctrl-top-left,
|
|
59
|
+
.maplibregl-ctrl-top-right,
|
|
60
|
+
.maplibregl-ctrl-bottom-left,
|
|
61
|
+
.maplibregl-ctrl-bottom-right {
|
|
62
|
+
position: absolute;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
z-index: 2;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.maplibregl-ctrl-top-left {
|
|
68
|
+
top: 0;
|
|
69
|
+
left: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.maplibregl-ctrl-top-right {
|
|
73
|
+
top: 0;
|
|
74
|
+
right: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.maplibregl-ctrl-bottom-left {
|
|
78
|
+
bottom: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.maplibregl-ctrl-bottom-right {
|
|
83
|
+
right: 0;
|
|
84
|
+
bottom: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.maplibregl-ctrl {
|
|
88
|
+
clear: both;
|
|
89
|
+
pointer-events: auto;
|
|
90
|
+
|
|
91
|
+
/* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */
|
|
92
|
+
transform: translate(0, 0);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.maplibregl-ctrl-top-left .maplibregl-ctrl {
|
|
96
|
+
margin: 10px 0 0 10px;
|
|
97
|
+
float: left;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.maplibregl-ctrl-top-right .maplibregl-ctrl {
|
|
101
|
+
margin: 10px 10px 0 0;
|
|
102
|
+
float: right;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.maplibregl-ctrl-bottom-left .maplibregl-ctrl {
|
|
106
|
+
margin: 0 0 10px 10px;
|
|
107
|
+
float: left;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.maplibregl-ctrl-bottom-right .maplibregl-ctrl {
|
|
111
|
+
margin: 0 10px 10px 0;
|
|
112
|
+
float: right;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.maplibregl-ctrl-group {
|
|
116
|
+
border-radius: 4px;
|
|
117
|
+
background: #fff;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.maplibregl-ctrl-group:not(:empty) {
|
|
121
|
+
box-shadow: 0 0 0 2px rgb(0 0 0 / 10%);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media (forced-colors: active) {
|
|
125
|
+
.maplibregl-ctrl-group:not(:empty) {
|
|
126
|
+
box-shadow: 0 0 0 2px ButtonText;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.maplibregl-ctrl-group button {
|
|
131
|
+
width: 29px;
|
|
132
|
+
height: 29px;
|
|
133
|
+
display: block;
|
|
134
|
+
padding: 0;
|
|
135
|
+
outline: none;
|
|
136
|
+
border: 0;
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
background-color: transparent;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.maplibregl-ctrl-group button + button {
|
|
143
|
+
border-top: 1px solid #ddd;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.maplibregl-ctrl button .maplibregl-ctrl-icon {
|
|
147
|
+
display: block;
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 100%;
|
|
150
|
+
background-repeat: no-repeat;
|
|
151
|
+
background-position: center center;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@media (forced-colors: active) {
|
|
155
|
+
.maplibregl-ctrl-icon {
|
|
156
|
+
background-color: transparent;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.maplibregl-ctrl-group button + button {
|
|
160
|
+
border-top: 1px solid ButtonText;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* https://bugzilla.mozilla.org/show_bug.cgi?id=140562 */
|
|
165
|
+
.maplibregl-ctrl button::-moz-focus-inner {
|
|
166
|
+
border: 0;
|
|
167
|
+
padding: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.maplibregl-ctrl-attrib-button:focus,
|
|
171
|
+
.maplibregl-ctrl-group button:focus {
|
|
172
|
+
box-shadow: 0 0 2px 2px rgb(0 150 255 / 100%);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.maplibregl-ctrl button:disabled {
|
|
176
|
+
cursor: not-allowed;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon {
|
|
180
|
+
opacity: 0.25;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.maplibregl-ctrl button:not(:disabled):hover {
|
|
184
|
+
background-color: rgb(0 0 0 / 5%);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.maplibregl-ctrl-group button:focus:focus-visible {
|
|
188
|
+
box-shadow: 0 0 2px 2px rgb(0 150 255 / 100%);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.maplibregl-ctrl-group button:focus:not(:focus-visible) {
|
|
192
|
+
box-shadow: none;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.maplibregl-ctrl-group button:focus:first-child {
|
|
196
|
+
border-radius: 4px 4px 0 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.maplibregl-ctrl-group button:focus:last-child {
|
|
200
|
+
border-radius: 0 0 4px 4px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.maplibregl-ctrl-group button:focus:only-child {
|
|
204
|
+
border-radius: inherit;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
|
|
208
|
+
background-image: svg-load("svg/maplibregl-ctrl-zoom-out.svg", fill: #333);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
|
|
212
|
+
background-image: svg-load("svg/maplibregl-ctrl-zoom-in.svg", fill: #333);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@media (forced-colors: active) {
|
|
216
|
+
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
|
|
217
|
+
background-image: svg-load("svg/maplibregl-ctrl-zoom-out.svg", fill: #fff);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
|
|
221
|
+
background-image: svg-load("svg/maplibregl-ctrl-zoom-in.svg", fill: #fff);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@media (forced-colors: active) and (prefers-color-scheme: light) {
|
|
226
|
+
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
|
|
227
|
+
background-image: svg-load("svg/maplibregl-ctrl-zoom-out.svg", fill: #000);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
|
|
231
|
+
background-image: svg-load("svg/maplibregl-ctrl-zoom-in.svg", fill: #000);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon {
|
|
236
|
+
background-image: svg-load("svg/maplibregl-ctrl-fullscreen.svg", fill: #333);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon {
|
|
240
|
+
background-image: svg-load("svg/maplibregl-ctrl-shrink.svg");
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@media (forced-colors: active) {
|
|
244
|
+
.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon {
|
|
245
|
+
background-image: svg-load("svg/maplibregl-ctrl-fullscreen.svg", fill: #fff);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon {
|
|
249
|
+
background-image: svg-load("svg/maplibregl-ctrl-shrink.svg", fill: #fff);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@media (forced-colors: active) and (prefers-color-scheme: light) {
|
|
254
|
+
.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon {
|
|
255
|
+
background-image: svg-load("svg/maplibregl-ctrl-fullscreen.svg", fill: #000);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon {
|
|
259
|
+
background-image: svg-load("svg/maplibregl-ctrl-shrink.svg", fill: #000);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon {
|
|
264
|
+
background-image: svg-load("svg/maplibregl-ctrl-compass.svg", fill: #333);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
@media (forced-colors: active) {
|
|
268
|
+
.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon {
|
|
269
|
+
@svg-load ctrl-compass-white url("svg/maplibregl-ctrl-compass.svg") {
|
|
270
|
+
fill: #fff;
|
|
271
|
+
#south { fill: #999; }
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
background-image: svg-inline(ctrl-compass-white);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@media (forced-colors: active) and (prefers-color-scheme: light) {
|
|
279
|
+
.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon {
|
|
280
|
+
background-image: svg-load("svg/maplibregl-ctrl-compass.svg", fill: #000);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
@svg-load ctrl-terrain url("svg/maplibregl-ctrl-terrain.svg") {
|
|
285
|
+
fill: #333;
|
|
286
|
+
#stroke { display: none; }
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@svg-load ctrl-terrain-enabled url("svg/maplibregl-ctrl-terrain.svg") {
|
|
290
|
+
fill: #33b5e5;
|
|
291
|
+
#stroke { display: none; }
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon {
|
|
295
|
+
background-image: svg-inline(ctrl-terrain);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon {
|
|
299
|
+
background-image: svg-inline(ctrl-terrain-enabled);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@svg-load ctrl-geolocate url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
303
|
+
fill: #333;
|
|
304
|
+
#stroke { display: none; }
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@svg-load ctrl-geolocate-white url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
308
|
+
fill: #fff;
|
|
309
|
+
#stroke { display: none; }
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
@svg-load ctrl-geolocate-black url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
313
|
+
fill: #000;
|
|
314
|
+
#stroke { display: none; }
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@svg-load ctrl-geolocate-disabled url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
318
|
+
fill: #aaa;
|
|
319
|
+
#stroke { fill: #f00; }
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@svg-load ctrl-geolocate-disabled-white url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
323
|
+
fill: #999;
|
|
324
|
+
#stroke { fill: #f00; }
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@svg-load ctrl-geolocate-disabled-black url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
328
|
+
fill: #666;
|
|
329
|
+
#stroke { fill: #f00; }
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
@svg-load ctrl-geolocate-active url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
333
|
+
fill: #33b5e5;
|
|
334
|
+
#stroke { display: none; }
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@svg-load ctrl-geolocate-active-error url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
338
|
+
fill: #e58978;
|
|
339
|
+
#stroke { display: none; }
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@svg-load ctrl-geolocate-background url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
343
|
+
fill: #33b5e5;
|
|
344
|
+
#stroke { display: none; }
|
|
345
|
+
#dot { display: none; }
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@svg-load ctrl-geolocate-background-error url("svg/maplibregl-ctrl-geolocate.svg") {
|
|
349
|
+
fill: #e54e33;
|
|
350
|
+
#stroke { display: none; }
|
|
351
|
+
#dot { display: none; }
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon {
|
|
355
|
+
background-image: svg-inline(ctrl-geolocate);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon {
|
|
359
|
+
background-image: svg-inline(ctrl-geolocate-disabled);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon {
|
|
363
|
+
background-image: svg-inline(ctrl-geolocate-active);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon {
|
|
367
|
+
background-image: svg-inline(ctrl-geolocate-active-error);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon {
|
|
371
|
+
background-image: svg-inline(ctrl-geolocate-background);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon {
|
|
375
|
+
background-image: svg-inline(ctrl-geolocate-background-error);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon {
|
|
379
|
+
animation: maplibregl-spin 2s infinite linear;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
@media (forced-colors: active) {
|
|
383
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon {
|
|
384
|
+
background-image: svg-inline(ctrl-geolocate-white);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon {
|
|
388
|
+
background-image: svg-inline(ctrl-geolocate-disabled-white);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon {
|
|
392
|
+
background-image: svg-inline(ctrl-geolocate-active);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon {
|
|
396
|
+
background-image: svg-inline(ctrl-geolocate-active-error);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon {
|
|
400
|
+
background-image: svg-inline(ctrl-geolocate-background);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon {
|
|
404
|
+
background-image: svg-inline(ctrl-geolocate-background-error);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@media (forced-colors: active) and (prefers-color-scheme: light) {
|
|
409
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon {
|
|
410
|
+
background-image: svg-inline(ctrl-geolocate-black);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon {
|
|
414
|
+
background-image: svg-inline(ctrl-geolocate-disabled-black);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
@keyframes maplibregl-spin {
|
|
419
|
+
0% { transform: rotate(0deg); }
|
|
420
|
+
100% { transform: rotate(360deg); }
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
a.maplibregl-ctrl-logo {
|
|
424
|
+
width: 88px;
|
|
425
|
+
height: 23px;
|
|
426
|
+
margin: 0 0 -4px -4px;
|
|
427
|
+
display: block;
|
|
428
|
+
background-repeat: no-repeat;
|
|
429
|
+
cursor: pointer;
|
|
430
|
+
overflow: hidden;
|
|
431
|
+
background-image: svg-load("svg/maplibregl-ctrl-logo.svg");
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
a.maplibregl-ctrl-logo.maplibregl-compact {
|
|
435
|
+
width: 14px;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
@media (forced-colors: active) {
|
|
439
|
+
a.maplibregl-ctrl-logo {
|
|
440
|
+
@svg-load ctrl-logo-white url("svg/maplibregl-ctrl-logo.svg") {
|
|
441
|
+
#outline { opacity: 1; }
|
|
442
|
+
#fill { opacity: 1; }
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
background-color: transparent;
|
|
446
|
+
background-image: svg-inline(ctrl-logo-white);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
@media (forced-colors: active) and (prefers-color-scheme: light) {
|
|
451
|
+
a.maplibregl-ctrl-logo {
|
|
452
|
+
@svg-load ctrl-logo-black url("svg/maplibregl-ctrl-logo.svg") {
|
|
453
|
+
#outline { opacity: 1; fill: #fff; stroke: #fff; }
|
|
454
|
+
#fill { opacity: 1; fill: #000; }
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
background-image: svg-inline(ctrl-logo-black);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.maplibregl-ctrl.maplibregl-ctrl-attrib {
|
|
462
|
+
padding: 0 5px;
|
|
463
|
+
background-color: rgb(255 255 255 / 50%);
|
|
464
|
+
margin: 0;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
@media screen {
|
|
468
|
+
.maplibregl-ctrl-attrib.maplibregl-compact {
|
|
469
|
+
min-height: 20px;
|
|
470
|
+
padding: 2px 24px 2px 0;
|
|
471
|
+
margin: 10px;
|
|
472
|
+
position: relative;
|
|
473
|
+
background-color: #fff;
|
|
474
|
+
color: #000;
|
|
475
|
+
border-radius: 12px;
|
|
476
|
+
box-sizing: content-box;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.maplibregl-ctrl-attrib.maplibregl-compact-show {
|
|
480
|
+
padding: 2px 28px 2px 8px;
|
|
481
|
+
visibility: visible;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.maplibregl-ctrl-top-left > .maplibregl-ctrl-attrib.maplibregl-compact-show,
|
|
485
|
+
.maplibregl-ctrl-bottom-left > .maplibregl-ctrl-attrib.maplibregl-compact-show {
|
|
486
|
+
padding: 2px 8px 2px 28px;
|
|
487
|
+
border-radius: 12px;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner {
|
|
491
|
+
display: none;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.maplibregl-ctrl-attrib-button {
|
|
495
|
+
display: none;
|
|
496
|
+
cursor: pointer;
|
|
497
|
+
position: absolute;
|
|
498
|
+
background-image: svg-load("svg/maplibregl-ctrl-attrib.svg");
|
|
499
|
+
background-color: rgb(255 255 255 / 50%);
|
|
500
|
+
width: 24px;
|
|
501
|
+
height: 24px;
|
|
502
|
+
box-sizing: border-box;
|
|
503
|
+
border-radius: 12px;
|
|
504
|
+
outline: none;
|
|
505
|
+
top: 0;
|
|
506
|
+
right: 0;
|
|
507
|
+
border: 0;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button {
|
|
511
|
+
appearance: none;
|
|
512
|
+
list-style: none;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker {
|
|
516
|
+
display: none;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button,
|
|
520
|
+
.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button {
|
|
521
|
+
left: 0;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,
|
|
525
|
+
.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner {
|
|
526
|
+
display: block;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button {
|
|
530
|
+
background-color: rgb(0 0 0 / 5%);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.maplibregl-ctrl-bottom-right > .maplibregl-ctrl-attrib.maplibregl-compact::after {
|
|
534
|
+
bottom: 0;
|
|
535
|
+
right: 0;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.maplibregl-ctrl-top-right > .maplibregl-ctrl-attrib.maplibregl-compact::after {
|
|
539
|
+
top: 0;
|
|
540
|
+
right: 0;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.maplibregl-ctrl-top-left > .maplibregl-ctrl-attrib.maplibregl-compact::after {
|
|
544
|
+
top: 0;
|
|
545
|
+
left: 0;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.maplibregl-ctrl-bottom-left > .maplibregl-ctrl-attrib.maplibregl-compact::after {
|
|
549
|
+
bottom: 0;
|
|
550
|
+
left: 0;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
@media screen and (forced-colors: active) {
|
|
555
|
+
.maplibregl-ctrl-attrib.maplibregl-compact::after {
|
|
556
|
+
background-image: svg-load("svg/maplibregl-ctrl-attrib.svg", fill=#fff);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
@media screen and (forced-colors: active) and (prefers-color-scheme: light) {
|
|
561
|
+
.maplibregl-ctrl-attrib.maplibregl-compact::after {
|
|
562
|
+
background-image: svg-load("svg/maplibregl-ctrl-attrib.svg");
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.maplibregl-ctrl-attrib a {
|
|
567
|
+
color: rgb(0 0 0 / 75%);
|
|
568
|
+
text-decoration: none;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.maplibregl-ctrl-attrib a:hover {
|
|
572
|
+
color: inherit;
|
|
573
|
+
text-decoration: underline;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.maplibregl-attrib-empty {
|
|
577
|
+
display: none;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.maplibregl-ctrl-scale {
|
|
581
|
+
background-color: rgb(255 255 255 / 75%);
|
|
582
|
+
font-size: 10px;
|
|
583
|
+
border-width: medium 2px 2px;
|
|
584
|
+
border-style: none solid solid;
|
|
585
|
+
border-color: #333;
|
|
586
|
+
padding: 0 5px;
|
|
587
|
+
color: #333;
|
|
588
|
+
box-sizing: border-box;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.maplibregl-popup {
|
|
592
|
+
position: absolute;
|
|
593
|
+
top: 0;
|
|
594
|
+
left: 0;
|
|
595
|
+
display: flex;
|
|
596
|
+
will-change: transform;
|
|
597
|
+
pointer-events: none;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.maplibregl-popup-anchor-top,
|
|
601
|
+
.maplibregl-popup-anchor-top-left,
|
|
602
|
+
.maplibregl-popup-anchor-top-right {
|
|
603
|
+
flex-direction: column;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.maplibregl-popup-anchor-bottom,
|
|
607
|
+
.maplibregl-popup-anchor-bottom-left,
|
|
608
|
+
.maplibregl-popup-anchor-bottom-right {
|
|
609
|
+
flex-direction: column-reverse;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.maplibregl-popup-anchor-left {
|
|
613
|
+
flex-direction: row;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.maplibregl-popup-anchor-right {
|
|
617
|
+
flex-direction: row-reverse;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.maplibregl-popup-tip {
|
|
621
|
+
width: 0;
|
|
622
|
+
height: 0;
|
|
623
|
+
border: 10px solid transparent;
|
|
624
|
+
z-index: 1;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.maplibregl-popup-anchor-top .maplibregl-popup-tip {
|
|
628
|
+
align-self: center;
|
|
629
|
+
border-top: none;
|
|
630
|
+
border-bottom-color: #fff;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
|
|
634
|
+
align-self: flex-start;
|
|
635
|
+
border-top: none;
|
|
636
|
+
border-left: none;
|
|
637
|
+
border-bottom-color: #fff;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
|
|
641
|
+
align-self: flex-end;
|
|
642
|
+
border-top: none;
|
|
643
|
+
border-right: none;
|
|
644
|
+
border-bottom-color: #fff;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
|
|
648
|
+
align-self: center;
|
|
649
|
+
border-bottom: none;
|
|
650
|
+
border-top-color: #fff;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
|
|
654
|
+
align-self: flex-start;
|
|
655
|
+
border-bottom: none;
|
|
656
|
+
border-left: none;
|
|
657
|
+
border-top-color: #fff;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
|
|
661
|
+
align-self: flex-end;
|
|
662
|
+
border-bottom: none;
|
|
663
|
+
border-right: none;
|
|
664
|
+
border-top-color: #fff;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
|
|
668
|
+
align-self: center;
|
|
669
|
+
border-left: none;
|
|
670
|
+
border-right-color: #fff;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
|
|
674
|
+
align-self: center;
|
|
675
|
+
border-right: none;
|
|
676
|
+
border-left-color: #fff;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.maplibregl-popup-close-button {
|
|
680
|
+
position: absolute;
|
|
681
|
+
right: 0;
|
|
682
|
+
top: 0;
|
|
683
|
+
border: 0;
|
|
684
|
+
border-radius: 0 3px 0 0;
|
|
685
|
+
cursor: pointer;
|
|
686
|
+
background-color: transparent;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.maplibregl-popup-close-button:hover {
|
|
690
|
+
background-color: rgb(0 0 0 / 5%);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.maplibregl-popup-content {
|
|
694
|
+
position: relative;
|
|
695
|
+
background: #fff;
|
|
696
|
+
border-radius: 3px;
|
|
697
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
|
|
698
|
+
padding: 15px 10px;
|
|
699
|
+
pointer-events: auto;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.maplibregl-popup-anchor-top-left .maplibregl-popup-content {
|
|
703
|
+
border-top-left-radius: 0;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.maplibregl-popup-anchor-top-right .maplibregl-popup-content {
|
|
707
|
+
border-top-right-radius: 0;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content {
|
|
711
|
+
border-bottom-left-radius: 0;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content {
|
|
715
|
+
border-bottom-right-radius: 0;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.maplibregl-popup-track-pointer {
|
|
719
|
+
display: none;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.maplibregl-popup-track-pointer * {
|
|
723
|
+
pointer-events: none;
|
|
724
|
+
user-select: none;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.maplibregl-map:hover .maplibregl-popup-track-pointer {
|
|
728
|
+
display: flex;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.maplibregl-map:active .maplibregl-popup-track-pointer {
|
|
732
|
+
display: none;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.maplibregl-marker {
|
|
736
|
+
position: absolute;
|
|
737
|
+
top: 0;
|
|
738
|
+
left: 0;
|
|
739
|
+
will-change: transform;
|
|
740
|
+
transition: opacity 0.2s;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.maplibregl-user-location-dot {
|
|
744
|
+
background-color: #1da1f2;
|
|
745
|
+
width: 15px;
|
|
746
|
+
height: 15px;
|
|
747
|
+
border-radius: 50%;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.maplibregl-user-location-dot::before {
|
|
751
|
+
background-color: #1da1f2;
|
|
752
|
+
content: "";
|
|
753
|
+
width: 15px;
|
|
754
|
+
height: 15px;
|
|
755
|
+
border-radius: 50%;
|
|
756
|
+
position: absolute;
|
|
757
|
+
animation: maplibregl-user-location-dot-pulse 2s infinite;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.maplibregl-user-location-dot::after {
|
|
761
|
+
border-radius: 50%;
|
|
762
|
+
border: 2px solid #fff;
|
|
763
|
+
content: "";
|
|
764
|
+
height: 19px;
|
|
765
|
+
left: -2px;
|
|
766
|
+
position: absolute;
|
|
767
|
+
top: -2px;
|
|
768
|
+
width: 19px;
|
|
769
|
+
box-sizing: border-box;
|
|
770
|
+
box-shadow: 0 0 3px rgb(0 0 0 / 35%);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
@keyframes maplibregl-user-location-dot-pulse {
|
|
774
|
+
0% { transform: scale(1); opacity: 1; }
|
|
775
|
+
70% { transform: scale(3); opacity: 0; }
|
|
776
|
+
100% { transform: scale(1); opacity: 0; }
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.maplibregl-user-location-dot-stale {
|
|
780
|
+
background-color: #aaa;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.maplibregl-user-location-dot-stale::after {
|
|
784
|
+
display: none;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.maplibregl-user-location-accuracy-circle {
|
|
788
|
+
background-color: #1da1f233;
|
|
789
|
+
width: 1px;
|
|
790
|
+
height: 1px;
|
|
791
|
+
border-radius: 100%;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.maplibregl-crosshair,
|
|
795
|
+
.maplibregl-crosshair .maplibregl-interactive,
|
|
796
|
+
.maplibregl-crosshair .maplibregl-interactive:active {
|
|
797
|
+
cursor: crosshair;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.maplibregl-boxzoom {
|
|
801
|
+
position: absolute;
|
|
802
|
+
top: 0;
|
|
803
|
+
left: 0;
|
|
804
|
+
width: 0;
|
|
805
|
+
height: 0;
|
|
806
|
+
background: #fff;
|
|
807
|
+
border: 2px dotted #202020;
|
|
808
|
+
opacity: 0.5;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.maplibregl-cooperative-gesture-screen {
|
|
812
|
+
background: rgba(0 0 0 / 40%);
|
|
813
|
+
position: absolute;
|
|
814
|
+
inset: 0;
|
|
815
|
+
display: flex;
|
|
816
|
+
justify-content: center;
|
|
817
|
+
align-items: center;
|
|
818
|
+
color: white;
|
|
819
|
+
padding: 1rem;
|
|
820
|
+
font-size: 1.4em;
|
|
821
|
+
line-height: 1.2;
|
|
822
|
+
opacity: 0;
|
|
823
|
+
pointer-events: none;
|
|
824
|
+
transition: opacity 1s ease 1s;
|
|
825
|
+
z-index: 99999;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.maplibregl-cooperative-gesture-screen.maplibregl-show {
|
|
829
|
+
opacity: 1;
|
|
830
|
+
transition: opacity 0.05s;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message {
|
|
834
|
+
display: none;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
@media (hover: none), (width <= 480px) {
|
|
838
|
+
.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message {
|
|
839
|
+
display: none;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message {
|
|
843
|
+
display: block;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.maplibregl-pseudo-fullscreen {
|
|
848
|
+
position: fixed !important;
|
|
849
|
+
width: 100% !important;
|
|
850
|
+
height: 100% !important;
|
|
851
|
+
top: 0 !important;
|
|
852
|
+
left: 0 !important;
|
|
853
|
+
z-index: 99999;
|
|
854
|
+
}
|