Map Visualizer

Render one per city or site from your location data, with the city name, a short description and the map centre and zoom you send.

Image, 1080 × 1350, 1 credit

Output

Map Visualizer, rendered by oJo with its first sample

Variables

  • cityNametext
    NEW YORK
  • descriptiontext
    The City That Never Sleeps
  • mapConfigtext
    {"lat":40.7128,"lng":-74.006,"zoom":12}

Send any of these in modify. Anything you leave out prints the sample value, and the response lists it in warnings.

Render it

Save the template to your account first. Saving gives you its ID.

curl --request POST \
  --url https://api.ojo.so/v1/image/template \
  --header 'Authorization: Bearer <your API key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "templateId": "<YOUR_TEMPLATE_ID>",
  "modify": {
    "cityName": "NEW YORK",
    "description": "The City That Never Sleeps",
    "mapConfig": {
      "lat": 40.7128,
      "lng": -74.006
    }
  },
  "viewportWidth": 1080,
  "viewportHeight": 1350
}'

What's included

Related templates

All templates
Map Visualizer - oJo