User:JGirault (WMF)/Kartographer/Features

From MediaWiki.org
Jump to navigation Jump to search

Mediawiki tags[edit]

<mapframe>[edit]

  • Example: see on the right
    A geoshape of Alaska
  • Parameters:
    • height
    • width
    • latitude (optional) Default: auto-centering
    • longitude (optional) Default: auto-centering
    • zoom (optional) Default: auto-zooming
    • align (optional) Default: right
    • mapstyle (optional) Default: osm-intl
    • frameless (optional) Default: null
    • group (optional) Wikivoyage only
    • show (optional) Wikivoyage only

<maplink>[edit]

Creates a link that opens the map in full screen mode.

  • Example: A geoshape of Alaska
  • Another example without specifying text parameter 64°0′36″N 152°34′48″W
  • Parameters:
    • latitude (optional) Default: auto-centering
    • longitude (optional) Default: auto-centering
    • zoom (optional) Default: auto-zooming
    • text (optional) Default: Formatted coordinates
    • class (optional)
    • mapstyle (optional) Default: osm-intl

Kartographer maps[edit]

Features[edit]

Layers[edit]

  • Wikimedia Tiles
  • GeoJSON overlays
    • Markers
    • Vector layers: polylines, polygons, circles, rectangles
    • Popups
    • SimpleStyle specification
    • External Data
      • Geoshapes
      • Geolines
      • Commons Datasets

Interaction Features[edit]

  • Drag panning with inertia
  • Scroll wheel zoom
  • Pinch-zoom on mobile
  • Double click zoom
  • Zoom to area (shift-drag)
  • Keyboard navigation
  • Popups

Visual Features[edit]

  • Zoom and pan animation
  • Tile and popup fade animation
  • Designed markers, popups and map controls
  • Retina resolution support

Map Controls[edit]

  • Zoom buttons
  • Attribution
  • Layer switcher
  • Scale

Browser Support[edit]

From Leaflet documentation.

Desktop[edit]

  • Chrome
  • Firefox
  • Safari 5+
  • Opera 12+
  • IE 7–11

Mobile web[edit]

  • Safari for iOS 7+
  • Android browser 2.2+, 3.1+, 4+
  • Chrome for mobile
  • Firefox for mobile
  • IE10+ for Win8 devices