width Number, width of the original image.url || tileUrlTemplate || urlTemplate StringĬrete a grid of circle markers, if role includes guide it creates a snapping guide for drawing.Plus, other layer-dependent options depending on the value of type: tileLayer content String the content of the tooltip.content String the content of the popup.ml) verison of the type of layer works for tileLayer. MultiLevel Logical, use the multiLevel (. guide the given layer will be used as snap guideLayer, works for polygon, polyline, rectangle, marker, circlemarker, featureGroup, layerGroup.drawnItems for featureGroup type layers it indicates that the given layer has to be used as the featureGroup for editing in the drawControl.Role String (optional), a string of type role1 role2 role3 where each role can be one of the following: Type String, one of the possible layer types. An object that validates against, or slightly more permissive.A string it is interpreted as a url to a json file containing the layer configuration, in this case the file will be fetched and the url field in the layer configuration will be completed (or we try to).zoom, Integer (optional), zoom to be set in loading.center, Array (optional), where the map has to be centered on loading.layers, array or object of layers (optional).type, String equal to map otherwise the configuration will not be loaded.The configuration object that defines the map, something like but slightly more permissive. Otherwise individually popup can be created with the popup field in the layer configuration object (see Layer configuration). Popup Define which objects will have an appended popup automatically set with content given by the fields name and details in the layer configuration object. Otherwise individually tooltip can be created with the tooltip field in the layer configuration object (see Layer configuration). Tooltip Define which objects will have an appended tooltip automatically set with content given by the name in the layer configuration object. layers L.Control.Layers options or a function function(layer, configuration, where), if null or false the layers will be added to the map directly.The option that can be passed on creation If string must be the url of a json object. configuration string or configuration object (optional), it can be set in a second time with setConfiguration method.map leaflet map object, instance of L.Map (optional).It works fine with leaflet-multilevel, through the multiLevel option in layer configuration (see Layer configuration).ĪPI Creation L.mapBuilder(map, options, configuration) leaflet-map-builder can create the following type of layers:
Leaflet-map-builder is a leaflet plugin that permits to build a leaflet map starting from a configuration object that can be easily stored in JSON format (see ).