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

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