Repository navigation
Customising
Lane Studio runs on iD's core, so iD's CSS classes and customisation hooks work in it too. Make changes to the iD
global after the bundle loads and before LaneStudio.init (see API).
Lane Studio's own drawing is in the .lanes-layer layer (styled in css-lanes/); its classes are not a stable API.
iD's map classes are:
| Class | On |
|---|---|
.node, .way
|
The entity type |
.point, .vertex, .midpoint, .line, .area
|
The geometry |
.tag-<key>, .tag-<key>-<value>
|
Primary and secondary tags (.tag-highway-residential, .tag-bridge-yes) |
.tag-status-<value> |
Lifecycle (construction, proposed, disused…) |
.tag-unpaved |
Highways with an unpaved surface |
.shared, .endpoint
|
Nodes in two or more ways; a way's end |
.hover, .active, .selected
|
Under the pointer, being dragged, selected |
Don't rely on which SVG element draws something.
iD.services.osm = serviceMyOSM; // replace a service
delete iD.services.mapillary; // remove oneiD.fileFetcher.cache().imagery is the imagery list: an array of { id, name, type: 'tms', template }, with optional
description, overlay, zoomExtent, polygon, overzoom, terms_url, terms_text and best. Templates take
{z}, {x}, {y}, {-y}/{ty}, {u} and {switch:a,b,c}. "None" and "Custom" are always offered.
iD.fileFetcher.cache().presets holds the presets
(schema-builder format). Add one:
iD.fileFetcher.cache().presets.presets['aerialway/zipline'] = {
geometry: ['line'], fields: ['incline'], tags: { aerialway: 'zip_line' }, name: 'Zipline'
};A full replacement (or context.presets({ presets, fields, defaults, categories })) must include the basic area,
line, point, vertex and relation presets and a name field.
iD.coreContext().minEditableZoom(zoom), 16 by default. Lower it with care: the API returns at most 50,000 nodes.
Copied from docs/ on every change; edit the files there, not here.
Lane Studio
- Guide
- FAQ
-
Tag coverage
- Tags: Accessibility
- Tags: Addresses
- Tags: Advertising
- Tags: Aerialways
- Tags: Aeroways
- Tags: Agriculture
- Tags: Amenities
- Tags: Animals
- Tags: Annotations
- Tags: Barriers
- Tags: Bicycles
- Tags: Boundaries
- Tags: Bridges
- Tags: Buildings
- Tags: Buses
- Tags: Changeset
- Tags: Children
- Tags: Climbing
- Tags: Clubs
- Tags: Communications
- Tags: Crafts
- Tags: Crossings
- Tags: Cycleways
- Tags: Diplomacy
- Tags: Education
- Tags: Emergencies
- Tags: Ferries
- Tags: Food and beverages
- Tags: Government
- Tags: GPS
- Tags: Hazards
- Tags: Health
- Tags: Highways
- Tags: Hiking
- Tags: Historic
- Tags: Import
- Tags: Industrial
- Tags: Infrastructure
- Tags: Landcover
- Tags: Landuse
- Tags: Leisure
- Tags: Lifecycle
- Tags: Man made
- Tags: Marine
- Tags: Marine navigation
- Tags: Maritime
- Tags: Mechanics
- Tags: Military
- Tags: Motorcycles
- Tags: Names
- Tags: NaPTAN
- Tags: Natural
- Tags: Offices
- Tags: Parking
- Tags: Pipelines
- Tags: Places
- Tags: Police
- Tags: Power
- Tags: Products
- Tags: Properties
- Tags: Public transport
- Tags: Railways
- Tags: References
- Tags: Religion
- Tags: Restrictions
- Tags: Riding
- Tags: Routes
- Tags: Shops
- Tags: Social facilities
- Tags: Social networks
- Tags: Sports
- Tags: Swimming and bathing
- Tags: Tourism
- Tags: Transport
- Tags: Vending machines
- Tags: Waste processing
- Tags: Water
- Tags: Water management
- Tags: Waterways
- Tags: Other
- Developers
- API
- Contributing
- Releasing
- Accessibility
- Privacy
- Security
- Code of conduct
- Changelog