Forum

Thread tagged as: Question, Field-Types

Maps custom JS

Hi,

I am having issues applying custom JS to my map - at the moment it is not being read in. I have the following in config.js:

define('PERCH_MAP_JS', '/assets/js/map.js');

I think I may have the path wrong - I have done from the site root, is this correct? The site is still using the packaged script.

Mike Harrison

Mike Harrison 37 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If the map is in a perch_content() region, then the HTML output is cached. Click Save on the region to regenerate it and see if that helps.

Yep it absolutely did thanks Drew