JDSwiftHeatMap icon indicating copy to clipboard operation
JDSwiftHeatMap copied to clipboard

Rendering Heatmap on ImageView

Open orkasan opened this issue 7 years ago • 4 comments

Hi, what would be the best practice to render heatmap on top of ImageView with CGPoints (x-y coordinates) instead of CLLocations with longitute-latitude?

orkasan avatar Jul 19 '18 13:07 orkasan

Do you mean you want to cover the heat 'layer' on top of an ImageView?

jamesdouble avatar Jul 20 '18 03:07 jamesdouble

Yes, that is exactly what I want, what do you think?

orkasan avatar Jul 20 '18 06:07 orkasan

You can adjust codes in JDOverlayRender.swift to get the heatmap CGImage.

jamesdouble avatar Jul 20 '18 06:07 jamesdouble

Or before it become CGImage, get contextlayer and you draw it in your way

jamesdouble avatar Jul 20 '18 06:07 jamesdouble