Mine is a neighborhood site.  About 500 shops/schools/and such.  
For anyone with a site, I link to the site.
The others are low impact users - laundry/nail salon/ mom and pop grocery 
stores.  These folks will have a "page" with limited individuality.  But I 
want to put a couple of photos, some comments from the owner and a google 
map on the page.
I can load a latlng (stored in mysql) using php.  I have tried it and it 
works - code at the bottom.
But the question is "Would this be useful"?  Or should I go with the 
address and use the geocoder?
The shop table has name, address, city, state, zip and more.  I can add one 
more column for the latlng.  Which way?
Thanks! 
 
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /><?php 
$LatLng=('37.7535, -122.4372'); 
?>
<style type="text/css">
  html { height: 100% }
  body { height: 100%; margin: 0; padding: 0 }
  #map_canvas { height: 100% }
</style>
<script type="text/javascript"
    src="http://maps.googleapis.com/maps/api/js?sensor=false";>
</script>
<script type="text/javascript">
  function initialize() {
    var latlng = new google.maps.LatLng(<?php echo($LatLng); ?>); 
    var myOptions = {
      zoom: 15,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.TERRAIN
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"),
        myOptions);
  }

</script>
</head>
<body onload="initialize()">
  <div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>   



-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/4TmKydCx5bwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to