What do you understand by offset values and How do you use the formula for an offset value?
Explain the above within 150-200 words
What do you understand by offset values and How do you use the formula for an offset value?
Explain the above within 150-200 words
The offset values are needed to show the correct plot of the map and to show the cursor in a correct way. The plotView for example makes sure that the cursor is in the correct spot and only shows up at the border of the currently selected plot. The initialOffset makes sure that the map is rendered in a way that makes it look better and uses the whole canvas.
The formulas make use of the previously defined plot and road dimensions. From these values the offsets are calculated.