DayZ Navigator | Help Needed
So, I've been looking into adding taviana support to Dayz Navigator.... and I have successfully managed to get Navi to load Taviana but the markers are not fitting too the map correctly, here is an example of what can be seen when you try to use navigator with origins at the moment (NOTE: the red markers are SUV's I've changed then for personal use)


So the markers are loading correctly, and if you look at the design of the map they would fit on the map right if the map was loading correctly...
I located the code for maps in Payload.h file, it looks like this:
It'd be easier to view this via Notepad++ so ive attached the download for Payload.h
My request is that if someone can fix the coding of this so that the markers fit too the map correctly, I will create the Origins Edition of Dayz Navigator, you will be credited for your help within the program aswell...
This is the key bit of code for taviana map:
SKYPE ME IF YOU KNOW HOW TO FIX IT: ClickTunes
https://www.virustotal.com/en/file/3...is/1376182924/


So the markers are loading correctly, and if you look at the design of the map they would fit on the map right if the map was loading correctly...
I located the code for maps in Payload.h file, it looks like this:
It'd be easier to view this via Notepad++ so ive attached the download for Payload.h
My request is that if someone can fix the coding of this so that the markers fit too the map correctly, I will create the Origins Edition of Dayz Navigator, you will be credited for your help within the program aswell...
This is the key bit of code for taviana map:
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 = [];
https://www.virustotal.com/en/file/3...is/1376182924/

