Custom JSON file


You can define your custom JSON file with data for all map markers. Example of json files is attached in plugin package in src/json directory.

Example of JSON file

Example of JSON file

By default the following values from JSON are supported by plugin:

  • latitude (lat),
  • longitude (lng),
  • title,
  • street,
  • city,
  • zip code (zip)

If you would like to add more parameters to your JSON file – remember to update the plugin settings in file shop-locator.js:

Add new JSON nodes here

Add new JSON nodes here

To induce your JSON file in plugin, please update its path via json: parameter:

To attach multiple custom JSON files to plugin you need to update also the following javascript attributes:

  • pathToJSONDirectory,
  • difFiles,
  • fileTypes,

With new values adjusted to new JSON structure.

Custom JSON attachment

Custom JSON attachment