LogoKikoMart Docs

Store Admin App: Map Setup

Configure the free OpenStreetMap maps used in the Store App.

KikoMart uses free OpenStreetMap maps. No Google Maps API key or billing is needed, and maps work right after installation.

The app name and package name are set in lib/app/resources/constants.dart of the Store App project.

Required#

  1. Set your store location. In the Store Admin app, go to Admin panel → Business Setup and enter your store's latitude and longitude. Maps open at this location by default.

  2. Set your app name and package name. In constants.dart, set appName and packageName to your own values:

    static const String appName = 'KikoMart Store';
    static const String packageName = 'com.yourcompany.kiko_mart_store';
    

    Use the same package name as the Android applicationId and the iOS Bundle Identifier (see Package name).

  3. Keep the map credit visible. Don't remove the "© OpenStreetMap contributors" text shown on the map. The map licence requires it.

Map servers identify your app by its name and package name. Never keep the demo values.

The default OpenStreetMap server is meant for light use only. Before you go live with real customers, add a LocationIQ key.

Get a LocationIQ key#

  1. Sign up at locationiq.com.
  2. Go to Dashboard → Access Tokens and create a token. It looks like pk.xxxxxxxx.
  3. If the dashboard lets you choose which APIs the token can use, allow only Reverse Geocoding and Maps / Tiles.
  4. Optional: set a usage alert or daily limit so a misused key can't run up usage.

Don't add an HTTP referrer restriction to the token. Phone apps don't send a referrer, so maps would turn grey on every phone.

Paste the key in the store panel#

Go to Store panel → Business Setup → Web App Settings → LocationIQ API Key, paste the key and click Save.

If you skip this, the app still works. Under heavy traffic the map may stop loading, but customers can still type their address manually.

The Store App is ready. Next, set up the Customer App.