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.
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:
To induce your JSON file in plugin, please update its path via json: parameter:
1 2 3 |
$(".firstStyle").ShopLocator({ json: "../src/json/markers.json" ); |
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.