Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $map = new Map($mapName);
- $map->setDisplaySize(5, 10);
- if(isset($_GET['x']) && isset($_GET['y'])){
- $x = $_GET['x'];
- $y = $_GET['y'];
- }else{
- $x = $attr->posX;
- $y = $attr->posY;
- }
- $map->setStartPositions($x,$y);
- echo '
- <script type="text/javascript">
- var mapName = "'.$mapName.'";
- var mapTiles = '.$map->getMapTiles().';
- var mapObjects = "";
- var mapDisplaySize = new Array('.$map->getDisplaySize().');
- var mapSize = new Array('.$map->getMapSize().');
- </script>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement