I need show a layer when page full screen map is loaded. I do not want to click a button to display this layer.
The custom markers correctly show in the map when the page load.
PAGE > event LOAD > Run javascript
[quote:]var map = Appery("googlemap_general").gmap;
var sfLatlng = new google.maps.LatLng(43.361591, -5.056191);
var marker = new google.maps.Marker({
position: sfLatlng,
map: map,
title: "LLEGADA",
icon: "https://sites.google.com/site/mapasllanes2015/mapas/metaL.png";
});
Appery("googlemap_labra").options.mapElement.gmap('addMarker',marker);
Appery("googlemap_labra").options.mapElement.gmap("refresh");[/quote]This works correctly... but I can not get to show layer code on page load.
What code I should run for the layer is displayed when the page load?
Thanks.