I’m new to Meteor, so this is a noob question: I have a Google Map inside one of my templates, and I’m wondering if I can pass a latitude and longitude from the Template helpers, for example:
Template.googleMap.helpers({
'someLat': function(){
return -31.5;
},
'someLng': function(){
return 150.1;
}
});
<template name="googleMap">
<div id="map"></div>
<script type="text/javascript"> function initMap(){...
//This is where I want to use {{someLat}} and {{someLng}} }
</script>
</template>
The problem is, I have Javascript inside my template that holds the map. I know this probably isn’t the correct way to implement this, but I’m wondering if there is a way to retrieve these values inside the template and use it in the JS in my template.