Hi i am implementing Google map in my site and i want to pass longitude and longitude variable in jquery using expression engine . so do you know how can i do this ? this is my code
$(function() {
$("#map").gMap(
{ controls:["GSmallMapControl", "GMapTypeControl"],
scrollwheel:true,
{exp:channel:entries entry_id="129"}
{latitude},
{longitude},
{/exp:channel:entries}
zoom: 6 });
});if i am writing {exp:channel:entries} tag than the jquery is not working .
Not sure about the jquery, but have you tried using one of the following add-ons? I’ve used both successfully
hey i did it using this following code
{exp:channel:entries channel="location"}
[removed]
$(function() {
$("#map").gMap({ controls:["GSmallMapControl", "GMapTypeControl"],
scrollwheel: true,
latitude: {location_latitude},
longitude: {location_longitude},
zoom: 10 });
});
[removed]
{/exp:channel:entries}
thanks for your replyPacket Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.