HelpDayZ Navigator | Help Needed

Posts 1–3 of 3 · Page 1 of 1
DayZ Navigator | Help Needed
Ok, so I have asked for help at the dayz area of the forums and have had no responses, so I thought as its C++ related I'd ask here...

http://pastebin.com/ziQJC9RQ
Code:
else if(requestmap == \"taviana\") {\r\n	//alert(\"loading taviana\");\r\n	var mapTileCounts = {\r\n		2: {\r\n			x: 3,\r\n			y: 3\r\n		},\r\n		3: {\r\n			x: 7,\r\n			y: 6\r\n		},\r\n		4: {\r\n			x: 15,\r\n			y: 13\r\n		},\r\n		5: {\r\n			x: 31,\r\n			y: 26\r\n		},\r\n		6: {\r\n			x: 63,\r\n			y: 53\r\n		}\r\n	};\r\n	var mapOriginY=1.920978;\r\n	var mapOriginX=0.284574;\r\n	var mapWidthXY=14.524823;\r\n	var mapLatCorM=0.968807;\r\n	var mapLngCorM=0.968165;\r\n	var mapLatCorB=-3.03538;\r\n	var mapLngCorB=0.285877;\r\n	function ChernarusProjection() {\r\n		this.origin = new google.maps.LatLng(mapOriginY, mapOriginX);\r\n		this.size = mapWidthXY;\r\n		this.unitsPerDegree = 256 / this.size\r\n	}\r\n	ChernarusProjection.prototype.fromLatLngToPoint = function (a) {\r\n		var c = (a.lng() - this.origin.lng()) * this.unitsPerDegree,\r\n			a = (a.lat() - this.origin.lat()) * this.unitsPerDegree;\r\n		return new google.maps.Point(c, a)\r\n	};\r\n	ChernarusProjection.prototype.fromPointToLatLng = function (a, c) {\r\n		var b = a.x,\r\n			d = 0 > a.y ? 0 : a.y,\r\n			d = (256 < d ? 256 : d) / this.unitsPerDegree + this.origin.lat(),\r\n			b = b / this.unitsPerDegree + this.origin.lng();\r\n		return new google.maps.LatLng(d, b, c)\r\n	};\r\n	var dayzMapTypes = [new google.maps.ImageMapType({\r\n		getTileUrl: function (a, c) {\r\n			return 0 > a.x || 0 > a.y || a.x > mapTileCounts[c].x || a.y > mapTileCounts[c].y ? null : dayz_staticUrl + \"tiles/taviana/\" + c + \"/\" + a.x + \"_\" + a.y + \".png\"\r\n		},\r\n		tileSize: new google.maps.Size(256, 256),\r\n		minZoom: 2,\r\n		maxZoom: 6,\r\n		name: \"taviana\"\r\n	})],\r\n		dayzMapNames = [\"taviana\"],\r\n		dayzProjections = [new ChernarusProjection],\r\n		dayzProjection = dayzProjections[0],\r\n		dayzCenter = new google.maps.LatLng(mapOriginY+0.5*mapWidthXY, mapOriginX+0.5*mapWidthXY),\r\n		dayzMapId = 1;\r\n	var dayzMap, dayzQueuedSets = [],\r\n		dayzMarkers = [];
Here you can see a piece of code from Dayz Navigator Payload.h file, this piece of code is meant to load Taviana map from dayzDB, which it does but it loads it too small, it's out of scale with the markers like so:




My request is, could someone find where or what is targeting the map scale size so I can edit the scale until I get the correct size to fit the markers... I may be able to offer a reward of sorts if I can get this fixed, if anyone has anything they can do for me,
My skype is ClickTunes
i'm pretty sure you got this figured out. i remember seeing your release in dayz section.

but if you still need a hand, message me.
Quote Originally Posted by notmee View Post
i'm pretty sure you got this figured out. i remember seeing your release in dayz section.

but if you still need a hand, message me.
Still need help on this
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us