[Windows Mobile Apps and Games] mattmcl1:
Map Not Displaying on own Server

Just tried TRACKME and think the concept is GREAT!! Thanks so much for putting this together!!

I have set this up on my own server and best I can tell everything is setup properly. Data is uploading from my Kaiser to my DB. However, the map is not displaying properly...alll I get is gray in the map box...

Here is the code from my page (Lat/Long redacted) - Any help appreciated!

<div id="map" style="width: 600px; height: 400px; text-align:center; float:center; border:1px solid black;"></div>

<script type="text/javascript">

//<![CDATA[

var iconRed = new GIcon(); iconRed.image = 'http://maps.google.com/mapfiles/ms/micons/red-dot.png'; iconRed.shadow = 'http://maps.google.com/mapfiles/ms/micons/msmarker.shadow.png'; iconRed.iconSize = new GSize(32, 32); iconRed.shadowSize = new GSize(59, 32); iconRed.iconAnchor = new GPoint(15, 32); iconRed.infoWindowAnchor = new GPoint(5, 1); var iconLtBlue = new GIcon(); iconLtBlue.image = 'http://labs.google.com/ridefinder/images/mm_20_gray.png'; iconLtBlue.shadow = 'http://labs.google.com/ridefinder/images/mm_20_shadow.png'; iconLtBlue.iconSize = new GSize(12, 20); iconLtBlue.shadowSize = new GSize(22, 20); iconLtBlue.iconAnchor = new GPoint(6, 19); iconLtBlue.infoWindowAnchor = new GPoint(5, 1); var iconGreen = new GIcon(); iconGreen.image = 'http://maps.google.com/mapfiles/ms/micons/green-dot.png'; iconGreen.shadow = 'http://maps.google.com/mapfiles/ms/micons/msmarker.shadow.png'; iconGreen.iconSize = new GSize(32, 32); iconGreen.shadowSize = new GSize(59, 32); iconGreen.iconAnchor = new GPoint(15, 32); iconGreen.infoWindowAnchor = new GPoint(5, 1); var geocoder = null; var map = null; var online = true; var bounds = new GLatLngBounds(); var map = new GMap2(document.getElementById("map"));

map.setCenter(new GLatLng(0, 0), 0, Hybrid);

map.addControl(new GLargeMapControl());

map.addControl(new GMapTypeControl());

map.addControl(new GScaleControl());

map.enableScrollWheelZoom();

function createGreenMarker(point, number)

{

var marker = new GMarker(point, iconGreen);

var html = number;

GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml(html);});

return marker;

};

function createGrayMarker(point, number)

{

var marker = new GMarker(point, iconLtBlue);

var html = number;

GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml(html);});

return marker;

};

function createRedMarker(point, number)

{

var marker = new GMarker(point, iconRed);

var html = number;

GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml(html);});

return marker;

};

var point = new GLatLng(##.########,-##.########);

var marker = createGreenMarker(point,'<table border="0"><tr><td align="center"><b>User: </b>mattmcl1</td><td align="right"><b>Trip: </b>None</td></tr><tr><td colspan="2"><hr width="400"></td></tr><tr><td align="left"><b>Time: </b>December 16, 2007, 8:10 am</td><td align="right"><b>Time Traveled: </b></td></tr><tr><td align="left"><b>Speed: </b>0.00 mph </td><td align="right"><b>Avg Speed: </b>0.44 mph</td></tr><tr><td align="left"><b>Altitude: </b>-77.10 feet</td><td align="right"><b>Dist. Traveled: </b>0.00 miles</td></tr> <tr><td colspan="2">Point 1 of 1</td></tr> <tr><td colspan="2"><hr width="400"><b><a href="http://xdaforums.com/showthread.php?t=340667" target="_blank">TrackMe</a> Luis Espinosa</b><br><a href="http://www.luisespinosa.com/" target="_blank">http://www.luisespinosa.com/</a></td></tr></table>');

map.addOverlay(marker);

bounds.extend(marker.getPoint());

map.setZoom(map.getBoundsZoomLevel(bounds)-1);

map.setCenter(bounds.getCenter());

//]]>

</script>