On Jun 3, 4:47 am, ConnorZ <kristiankj
...@gmail.com> wrote:
> But another thing: Can you explain me what "zoomFactor" is used for??
> The API documentation says:
> "For optimization, the zoomFactor parameter should reflect the
> approximate magnification between the different zoom level groups
> specified in numLevels. For example, given a doubling for each zoom
> level and about 4 zoom levels in each group, this value should be set
> to 16."
As I understand it zoomFactor should indicate the
ratio of magnification factors between one level
of the polyline and the next. Each level of the
polyline corresponds to a group of levels of the
map and the magnification factor doubles for each
increment. Thus, if one level of the polyline is
supposed to correspond to four levels of the map,
the zoomFactor between levels of the polyline
would be 2^4 = 16. In my experience, you can
frequently fiddle with this parameter quite a bit
without major changes in the line.
Frequently numLevels and zoomFactor should satisfy
zoomFactor^numLevels = 2^18, when working with a
G_NORMAL_MAP. This could change if you are
working on a map with a different number of zoom
levels itself. It is also possible that the
structure of the line might dictate a different
zoomFactor.
Hope that helps,
Mark