I am wanting to include multiple markers on one google map, using Geofinder and Geotagger.
Here is my code:
function init_map() {
{exp:channel:entries channel="oddjobz_post" limit="2"}
var lat = {oddjob_lat};
var lng = {oddjob_lng};
var marker_title = '{title}';
{/exp:channel:entries}
var location = new google.maps.LatLng(lat, lng);
var myOptions = {
zoom: 5,
center: location,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map-canvas"),
myOptions);
var marker = new google.maps.Marker({
position: location,
map: map,
title: marker_title
});
}Can someone help me extend this to include all available markers set in the parameters of the channel entry?
Thanks in advance
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.