# afaik you cannot do that programmatically. You can "hack it" like here, here or here but usually you'd use a 3rd party API for that. Think Carto or ArcGIS.