Hey guys. I'm new in Javascript so I need help. I am creating a live game map from an online game. The Data(coordinates,userid, etc.) is exported as json. My problem ist now to create a map, where everything is visualised.
I have a the map in image files: {X}x{Y}x{Z}. {X} and {Y} are the coordinates and {Z} is the zoom level.(.jpg files). I want later, that the data is imported with Ajax, but to solve this problem, I first need a map^^.
The map should be composed like the image you can see here. in PHP the visualisation is like the code below.
Hey guys. I'm new in Javascript so I need help. I am creating a live game map from an online game. The Data(coordinates,userid, etc.) is exported as json. My problem ist now to create a map, where everything is visualised.
I have a the map in image files: {X}x{Y}x{Z}. {X} and {Y} are the coordinates and {Z} is the zoom level.(.jpg files). I want later, that the data is imported with Ajax, but to solve this problem, I first need a map^^.
The map should be compoesed like the image you can see here. in PHP the visualisation is like code below.
<?php $x=0; $y=0; for($z = 0; $z < 5 ; $z++){ for($i = 0; $i < 5 ; $i++){ echo '<img src="map_img/'.$x.'x'.$y.'-4.jpg" alt="">'; $x++; } $x = 0; echo("<br />"); $y++; } ?>
//I can't use the code tags, because I'm a new User and I can't post "links" before 25 posts...
The first step I want is the creation of a coordinate system(topleft(0,0)) and the visualization of my mapfiles(one zoom level is enough for the beginning^^).
Has anyone ressources on how to create such a Map?
The first step I want is the creation of a coordinate system(topleft(0,0)) and the visualization of my mapfiles(one zoom level is enough for the beginning^^).
Has anyone ressources on how to create such a Map?