FATOS Developer
Developer SiteConsole
  • FATOS Developer Introduction
  • FATOS API
    • Map
      • Map control
        • Sources
        • Layers
          • Style Specification
            • Fill
            • Line
            • Symbol
            • Circle
        • Building
        • Bounds
        • Center
        • Heading
        • Flyto
        • Tilt
        • Zoom
        • Marker
          • Instance Members
        • Polyline
        • Polygon
        • Circle
        • On/Off
        • Once
        • Language
        • Theme
        • Cluster
          • Instance Members
      • Button control
      • Utilities
        • Rectangle
        • Distance
        • Area
    • Search
      • Address
      • Geocoding
      • Geofencing
      • Detail
      • Public Transport
        • Bus Route
        • Bus Route Information
        • Bus Stop Information
        • Subway Station Information
        • Subway Station Timetable
        • Public Transit POI within Radius
        • Public Transit POI on Map
        • Subway Station Transfer Information
        • Real-time Bus Location Information
        • Real-time Bus Arrival Information
    • Routing
      • Route
      • Route for truck
      • Route_v2
      • Public Transit Route Search
      • Route Graphic Data
      • Bicycle
      • Pedestrian
    • Analyze
    • Tracking
  • FATOS SDK
    • Authentication
    • Platform
      • Android
        • Start
        • Component
      • iOS
        • Start
        • Component
      • React Native
        • Start
        • Component
  • Get your API Key
  • Release Note
    • FATOS Map API
    • API Server
    • RP Server
  • Troubleshooting
    • FAQ
Powered by GitBook
On this page
  • Introduction
  • Description
  • Example

Was this helpful?

  1. FATOS API

Map

Everything about map and its properties

PreviousFATOS APINextMap control

Last updated 4 years ago

Was this helpful?

Introduction

FATOS map is a JavaScript library that uses WebGL to rendering maps while interacting with users in a vector tile type.

To use "FATOS Map", you must request an API key and then apply that key to the source. If you want an API key, please go to and request an API key after sign up.

Please let us know if you have any technical problems using our SDK Contact :

If you are a OneMap user, kindly request to

Description

The map object represents a map of the screen. It provides methods and properties for programmatically changing the map and generating an event when an user interacts with it. Map instance creates a map by specifying containers and other options

Name

Description

Optional

zoom

The zoom value is the zoom in/out value of the map. Not the required input.

option

center

Center is coordinate value that will be displayed to the center at the first loading of the map and is a required input.

must

maxZoom

Maximum zoom value. Not required value.

option

minZoom

Minimum zoom value. Not required value.

option

key

Authentication value for map use. Required input value.

must

buttonBox

Set map control box visibility on map instance initialization. Setting this option as "false" would hide the control box. Default: "true".

option

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>FATOS Map</title>
</head>
<body>
<div style="height: 100vh;">
    <div id="app"></div>

</div>
<script type="text/javascript" src="https://maps.fatos.biz/dist/fatosmap-gl.js"></script>
<script>
    let LatLng = {lat: 37.482890, lng: 126.896086}
    let mapInstance = new fatosmap.maps.Map(
        document.getElementById("app"),
        {
            zoom: 14,
            center: LatLng,
            maxZoom: 20,
            minZoom: 2,
            key: 'YOUR_API_KEY'
        }
    )
</script>
</body>
</html>
https://console.fatos.biz
sales@fatoscorp.com
https://onemap-console.fatos.biz