使用MapBox iOS SDK和colorize-alpha的热图。

时间:2022-04-15 11:04:31

Is the colorize-alpha method (aka: poor man's heatmap) specified here - https://www.mapbox.com/blog/colorize-alpha-image-filter/ - able to be used within the MapBox iOS SDK - https://www.mapbox.com/mapbox-ios-sdk/ - or is this only for web?

在这里指定的colorize-alpha方法(又名:poor man的热图)——https://www.mapbox.com/blog/colorize-alpha-image-filter/可以在MapBox iOS SDK中使用- https://www.mapbox.com/mapbox-ios-sdk/ -或者仅用于web?

2 个解决方案

#1


1  

This sort of functionality isn't available in the MapBox iOS API, but unlike web, there are a lot of this sort of graphics capabilities in the base Cocoa/UIKit frameworks. Specifically check out this blog post for an example of colorizing imagery on the fly. It's not exactly a heat map, but if you produced a grayscale heat map like in Artem's post, you could color it in a similar way.

这种功能在MapBox iOS API中是不可用的,但与web不同的是,在基本的Cocoa/UIKit框架中,有很多这样的图形功能。具体地看一下这个博客文章,为一个关于飞行的彩色图像的例子。这并不完全是一幅热图,但如果你像在Artem的文章中绘制了一个灰度的热图,你可以用类似的方式给它着色。

#2


0  

You can try LFHeatMaps to generate a similar effect: https://github.com/gpolak/LFHeatMap

您可以尝试使用LFHeatMaps生成类似的效果:https://github.com/gpolak/lfhotmap。

#1


1  

This sort of functionality isn't available in the MapBox iOS API, but unlike web, there are a lot of this sort of graphics capabilities in the base Cocoa/UIKit frameworks. Specifically check out this blog post for an example of colorizing imagery on the fly. It's not exactly a heat map, but if you produced a grayscale heat map like in Artem's post, you could color it in a similar way.

这种功能在MapBox iOS API中是不可用的,但与web不同的是,在基本的Cocoa/UIKit框架中,有很多这样的图形功能。具体地看一下这个博客文章,为一个关于飞行的彩色图像的例子。这并不完全是一幅热图,但如果你像在Artem的文章中绘制了一个灰度的热图,你可以用类似的方式给它着色。

#2


0  

You can try LFHeatMaps to generate a similar effect: https://github.com/gpolak/LFHeatMap

您可以尝试使用LFHeatMaps生成类似的效果:https://github.com/gpolak/lfhotmap。