Readability rearangement in canvasmaprenderer.js

Slight readability change: grouping  code and parameters.