Make setPosition reposition Potlatch 2 instead of reloading it
This commit is contained in:
parent
409576eea0
commit
abc5b2d7b4
1 changed files with 1 additions and 1 deletions
|
@ -43,6 +43,6 @@
|
|||
doSWF(<%= @lat || 'null' %>,<%= @lon || 'null' %>,<%= @zoom %>);
|
||||
|
||||
function setPosition(lat, lon, zoom) {
|
||||
doSWF(lat, lon, zoom || 15);
|
||||
$("potlatch").setPosition(lat, lon, Math.max(zoom || 15, 13));
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue