Link to satellite image from Google Maps
- To use the Google Maps with Longdo Map API, you must get a Google Maps API key from
Google Maps Platform
- Specify your Google Maps account before set base layer
map.Layers.externalOptions({ googleQuery: 'key=YOUR_GOOGLE_KEY_API' });
Note: In case of business license, you must use the following function.map.Layers.externalOptions({ googleQuery: 'client=YOUR_CLIENT_ID&channel=YOUR_CHANNEL' });
- Set Google satellite to base layer
map.Layers.setBase(longdo.Layers.GOOGLE_SATELLITE);
example
Link to vector image from Mapbox
- Get a access tokens from
Access Tokens page
- Specify your Mapbox account before set base layer
map.Layers.externalOptions({ mapboxKey: 'YOUR_MAPBOX_ACCESS_TOKEN' });
or specify style to access custom mapmap.Layers.externalOptions({ mapboxStyle: 'http://example.com/style.json' });
- Set Mapbox to base layer
map.Layers.setBase(longdo.Layers.MAPBOX_STREETS);
example