Template:LatLonZoom2JOSMbbox

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

Usage

This template transform slippymap parametters (lat, lon, zoom, width, height) into JOSM bbox parameters (left, bottom, right, top). It gives a string ready to use with the Template:JOSM Control.

It can be used in a template in adjunction with the slippymap extension.

Examples

  • {{LatLonZoom2JOSMbbox|lat = 47.25154 |lon = 5.994325 |zoom = 17 |width = 200 |height = 200 }} gives:
    left=5.993252&right=5.995398&bottom=47.250467&top=47.252613

See also