Skip to content
  1. API
  2. Types

GeoModeOptions

Type: object

Properties

  • attribution(optional) string[='Map data &copy; <a target="_blank" href="http://osm.org/copyright&quot;&gt;OpenStreetMap contributors</a>'] HTML string that will be displayed on the corner, indicates the source of the tiles.

  • attributionOptions(optional) BrandOptions Position and options for the attribution message

  • backgroundColor(optional) Color[='silver'] Color of the map background (color of the missing tiles).

  • crs(optional) CRS[=L.CRS.EPSG3857] This parameter controls the Coordinate Reference System used for the map projection. Usually you do not need to change it, unless you need custom projections. For more information see the Leaflet CRS documentation.

  • disableNodeDragging(optional) boolean[=true] Disable node dragging when the mode is on. Dragging is disabled by default, because geo mode is not scale-free.

  • duration(optional) number[=0] Duration of the transition when swapping mode.

  • latitudePath(optional) PropertyPath[='latitude'] Node path which contains the latitude.

  • longitudePath(optional) PropertyPath[='longitude'] Node path which contains the longitude.

  • maxZoomLevel(optional) number[=20] Maximum geo-spatial zoom.

  • minZoomLevel(optional) number[=1] Minimum geo-spatial zoom.

  • opacity(optional) number[=1] Map baselayer opacity

  • sizeRatio(optional) number[=1] Multiplier for the node radius an edge width.

  • tileBuffer(optional) number[=2] Number of extra tiles to be downloaded around the viewport bounds, to make the panning smoother. Deprecated: this is automatically handled now, alternatively, you can pass this to the tiles together with the L.TileLayer options.

  • tileUrlSubdomains(optional) string[='abc'] Values with which the '{s}' string in the URL can be replaced. Deprecated, use tiles.subdomains instead.

  • tileUrlTemplate(optional) string[='https://{s}.tile.osm.org/{z}/{x}/{y}.png'] Format of the URL used to search for tiles. Must contain '{z}' (zoom level of the tile), '{x}' and '{y}' (coordinates of the tile). Possible '{s}' (replaced by one of the characters in the tileUrlSubdomains setting). Possible '{r}' for tile servers who support retina tiles. Deprecated: use tiles.url now.

  • tiles(optional) object|L.Layer In addition to the following list, this object supports also Leaflet TileLayer Options and Leaflet WMS TileLayer Options options

    • subdomains(optional) string[='abc'] Format of the URL used to search for tiles.
    • tms(optional) boolean[=false] Useful when using a TMS service.
    • url(optional) string[='https://{s}.tile.osm.org/{z}/{x}/{y}.png'] Format of the URL used to search for tiles. Must contain '{z}' (zoom level of the tile), '{x}' and '{y}' (coordinates of the tile). Possible '{s}' (replaced by one of the characters in the tileUrlSubdomains setting). Possible '{r}' for tile servers who support retina tiles.
    • wms(optional) boolean[=false] Useful when using a WMS service. For custom WMS parameters the Leaflet WMS TileLayer options can be used as reference for additional parameters to be set
  • wrapCoordinates(optional) boolean[=true] Whether to wrap the coordinate to the projection space of [-180, 180] for longitude, [-85, 85] for longitude. If set to false, nodes with coordinates outside of that range will not be shown.