Antes pongo en el encabezado
AAdd(:aHeadScript, '<script src="https://maps.googleapis.com/maps/api/js?key=KEY_ID_DEVELOPER"></script>' )
Este es el codigo JavaScript
<script>
var centerPos = new google.maps.LatLng(17.9898421,-93.3799954);
function initialize() {
var map;
var zoomLevel = 15.60;
var mapOptions = {
center: centerPos,
zoom: zoomLevel,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map( document.getElementById("map-canvas"), mapOptions );
var locations = [
['Centro (Matriz)', 17.9898421,-93.3799954],
['Ev. Juarez', 17.9988306,-93.3767],
['Abraham Bandala', 17.9910208,-93.3868717]
];
var image = 'images/pollo_feliz/ping_pollofeliz.png';
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker( {
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
title: locations[i][0],
map: map,
icon: image
} );
}
}
google.maps.event.addDomListener(window, 'load', initialize);
// Y lo estoy tratando de incrustar en un Bevel
WITH OBJECT WBevel():New( :WO )
:cId := 'map-canvas'
:aWidth := { 12, 10, 8 }
:aOffSet:= { 0, 2, 2 }
:oStyle:cHeight:= "460px"
:oStyle:cWidth := "100%"
:Create()
END WITH