I am getting a little lost here and have read the related topics on stackexchange carefully. I am using the standard controller for a custom object in a managed package. This code works perfectly in a deployed org, but when I put it into my dev org I get the error. I am prefixing with name space and using fully qualified fields.
Here is the VF page code;
<apex:page standardController="ELTON__Equipment_Count__c">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body, #map_canvas {
margin: 0;
padding: 0;
height: 100%;
}
</style>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>
var map;
function initialize() {
var mapOptions = {
zoom: 12,
center: new google.maps.LatLng({!ELTON__Equipment_Count__c.ELTON__GPS_Lat__c},{!ELTON__Equipment_Count__c.ELTON__GPS_Long__c} ),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map_canvas'),
mapOptions);
marker = new google.maps.Marker({position: new google.maps.LatLng({!ELTON__Equipment_Count__c.ELTON__GPS_Lat__c},{!ELTON__Equipment_Count__c.ELTON__GPS_Long__c}), map: map });
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</meta>
</meta>
</head>
<body>
<div id="map_canvas"></div>
</body>
</html>
</apex:page>
I was able to resolve this by pasting in the code from eyescream directly.
GPS
per @eyescream, your references would read asEquipment_Count__c.GPS__Latitude__s
andEquipment_Count__c.GPS__Longitude__s