Code Gallery
Heat Map Layer
|
This sample creates a heatmap based from a set of points.
It also demonstrates how you can craete your own dynamic layers that generates raster images directly on the client, without the need for a server roundtrip. Change list: June 23, 2009: - Added support for using with WPF. - Added a Resolution property to allow for better performance at the cost of resolution.
|
|
Report Inappropriate Content: This Code Gallery is intended for the free exchange of code related to ESRI software products. Let us know if this entry is inappropriate (e.g., a download for a commercial product).

Doesn't work with WPF, unfortunately posted by clupprich on Jun 22, 2009 11:58 PM
Should it?!
RE: Doesn't work with WPF, unfortunately posted by SharpGIS on Jun 23, 2009 11:35 AM
No currently this is for Silverlight only, but it probably shouldn't take much to change to WPF. However WPF already has a bitmap API, so this could probably be done much more efficient using that instead of the PNG encoder and the matrix-stamping approach.
RE: Doesn't work with WPF, unfortunately posted by SharpGIS on Jun 23, 2009 12:49 PM
Strike my last commented. I updated source to support WPF.
RE: Doesn't work with WPF, unfortunately posted by clupprich on Jun 27, 2009 7:08 AM
Unfortunately there seems to be some kind of strange thing going on in the PNGEncoder. When I try to run the sample embedded into a WPF app, it throws an exception. Saving the generated png image from the encoder and opening it with an image viewing application tells me that the generated image is not a valid png.
RE: Doesn't work with WPF, unfortunately posted by clupprich on Jul 03, 2009 1:33 AM
Solved. The PngEncoder omitted the checksum and WPF complained (Silverlight doesn't, strangely). See here for my code: http://gist.github.com/140004
If you would like to post a comment, please login.