Only do mappam for www.openstreetmap.org and openstreetmap.org to stop

the annoying "wrong API key" errors popping up all the time on my test
environment.
This commit is contained in:
Tom Hughes 2007-06-29 14:54:55 +00:00
parent 344fced9a6
commit 4358a6adcb

View file

@ -20,10 +20,9 @@
<script type="text/javascript" src="/openlayers/OpenLayers.js"></script>
<%= javascript_include_tag 'map.js' %>
<% unless @user %>
<script src="http://www.mappam.com/javascripts/mappam.js" type="text/javascript"></script>
<% end %>
<% unless @user %>
<script src="http://www.mappam.com/javascripts/mappam.js" type="text/javascript"></script>
<% end %>
<script type="text/javascript">
@ -49,12 +48,11 @@
updateLocation();
<% unless @user %>
if( window.location.host.match( /^www/ ) ) {
mappam.register( map, '10011756636067178496', '1');
} else {
mappam.register( map, '6738410720121976832', '1');
}
if ( window.location.hostname == "www.openstreetmap.org" ) {
mappam.register( map, '10011756636067178496', '1');
} else if( window.location.hostname == "openstreetmap.org" ) {
mappam.register( map, '6738410720121976832', '1');
}
<% end %>
document.getElementById('map_OpenLayers_ViewPort').style.position = 'absolute';