make markerData a local variable

[skip ci]