Map chart
About this tool
How to use it
- Choose this tool. You do not need to add a file.
- Enter your places with their latitude and longitude, and a value if you want.
- Choose the map view, size and colour options.
- Press Generate.
- Download the map.
What you get back
Try Map chart in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/render/map" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'points=[{"lat":52.52,"lon":13.4,"label":"Berlin","value":3.7}]' \
-F 'projection=equirectangular' \
-F 'view=world'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.render.map({
"points": "[{\"lat\":52.52,\"lon\":13.4,\"label\":\"Berlin\",\"value\":3.7}]",
"projection": "equirectangular",
"view": "world"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->render()->map([
'points' => '[{"lat":52.52,"lon":13.4,"label":"Berlin","value":3.7}]',
'projection' => 'equirectangular',
'view' => 'world',
]);
echo $result->requestId;