<% zoom = '12' %>
<% end %>
-<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
-<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
+<%= javascript_include_tag 'openlayers.js' %>
<%= javascript_include_tag 'map.js' %>
<script type="text/javascript">
var lonlat = getEventPosition(e);
- $("latitude").value = lonlat.lat;
- $("longitude").value = lonlat.lon;
+ $("#latitude").val(lonlat.lat);
+ $("#longitude").val(lonlat.lon);
if (marker) {
removeMarkerFromMap(marker);
}
function openMap() {
- $("map").style.display = "block";
- $("usemap").style.display = "none";
+ $("#map").show();
+ $("#usemap").hide();
var centre = new OpenLayers.LonLat(<%= lon %>, <%= lat %>);
var zoom = <%= zoom %>;