Do the continents have to be in alphabetical order?
Do the territories have to be in alphabetical order?
Where are the co-ordinates measured from? Top left, or centre centre?
Moderator: Cartographers
e_i_pi wrote:Cheers guys. I'll endeavour to get the XML done over the next week, but unfortunately I don't have PS at work, and afaik, I can't easily find coordinate values using MS Paint or Photo/Fax Viewer
EDIT: I'll just write some JavaScript that calls clientX and clientY, problem solved
e_i_pi wrote:Cheers guys. I'll endeavour to get the XML done over the next week, but unfortunately I don't have PS at work, and afaik, I can't easily find coordinate values using MS Paint or Photo/Fax Viewer
EDIT: I'll just write some JavaScript that calls clientX and clientY, problem solved
<html>
<head>
<script type="text/javascript">
var xoffset=0;
var yoffset=0;
function show_coords(event)
{
x=event.clientX - xoffset;
y=event.clientY - yoffset;
document.getElementById("xc").innerHTML = 'X: ';
document.getElementById("xc").innerHTML += x;
document.getElementById("yc").innerHTML = 'Y: ';
document.getElementById("yc").innerHTML += y;
}
function setzero(event)
{
xoffset=event.clientX;
yoffset=event.clientY;
}
</script>
</head>
<body onmousemove="show_coords(event)" onmousedown="setzero(event);">
<img src="http://www.mysite.com/myimage.jpg" /><br />
<span id="xc">X</span><br />
<span id="yc">Y</span><br />
<p>Click on the top left pixel of the image in order to centre your (0,0) co-ordinate there</p>
</body>
</html>
MrBenn wrote:Nice job. You'll probably still have to tweak the army coordinates a little (1-2px shuffles are fairly common). Did you definitely take the offset into consideration?
MrBenn wrote:Wait until you're home and download Jota's Map Assistant and my 88 cursor - It'll save plenty of time
e_i_pi wrote:MrBenn wrote:Nice job. You'll probably still have to tweak the army coordinates a little (1-2px shuffles are fairly common). Did you definitely take the offset into consideration?
Nope, I definitely didn't take it into consideration, I coudln't find it in that thread... it was long and I have like 10 minutes before I finish work
e_i_pi wrote:MrBenn wrote:Wait until you're home and download Jota's Map Assistant and my 88 cursor - It'll save plenty of time
Kind of defeats the purpose - I can do it at home anyway with PS, I need something to do it at work with
chipv wrote:e_i_pi wrote:MrBenn wrote:Nice job. You'll probably still have to tweak the army coordinates a little (1-2px shuffles are fairly common). Did you definitely take the offset into consideration?
Nope, I definitely didn't take it into consideration, I coudln't find it in that thread... it was long and I have like 10 minutes before I finish work
viewtopic.php?f=127&t=74525&hilit=offset&start=15#p1789760
Your code is Firefox-specific, but not really a big deal, it's all good!
e_i_pi wrote:I was checking it in IE, that's all we have at work. Government employers don't trust the wily Firefox it seems hehe
Users browsing this forum: No registered users