Hey there,
So, full disclosure... I know hardly anything about javascript except how to activate it after copying and pasting found code.
On to my question... Im using leaflet.js cluster map in my website and I would like to be able to create multiple markers using repeatable regions though the admin. Right now, each marker is listed out, separated by a commas (example below). Is it possible to create multiple markers though couch? Unfortunately, I cant repeat the script call over and over.. seems like it has to stay within the tags.
So, full disclosure... I know hardly anything about javascript except how to activate it after copying and pasting found code.

On to my question... Im using leaflet.js cluster map in my website and I would like to be able to create multiple markers using repeatable regions though the admin. Right now, each marker is listed out, separated by a commas (example below). Is it possible to create multiple markers though couch? Unfortunately, I cant repeat the script call over and over.. seems like it has to stay within the tags.
- Code: Select all
<script>
var markers = [
{
"project":"<h7>test test</h7>",
"citystate":"Raleigh, NC",
"what":"Mixed-Use",
"architect":"Mixed-Use",
"url":"<a href='test' target='blank'>View Project</a>",
"lat":35.7831950,
"lng":-78.6453600
},
{
"project":"<h7>test test</h7>",
"citystate":"Raleigh, NC",
"what":"Mixed-Use",
"architect":"Mixed-Use",
"url":"<a href='test' target='blank'>View Project</a>",
"lat":35.7996630,
"lng":-78.6455610
},
];
</script>