Hi!
I have to put a specific QImage onto the map many times (> 10000).
The class pictureMarker offers rendering an image on the map - fine.
But its consuming more memory then necessary. (I was looking at the GPU memory)
By now it is NOT possible to put the pixmap to the memory of the graphic card and reference that many times, in this example 10000 times.
- Is that done in the background (QPixmap offers cacheKey() - QPixmap Class | Qt GUI 5.5 ) without being documented?
- Or is there a possiblity i didn`t recognize yet?
Thank you!
Solved! Go to Solution.
Norbert-
Seeing that you can share a single Symbol with multiple Graphics (one to many), you have a few options with PictureMarkerSymbol:
- Create one PictureMarkerSymbol with QImage and share that symbol between graphics
- Create SimpleRenderer with symbol as PictureMarkerSymbol using QImage and apply to GraphicsOverlay
If this does not work, can you please provide an example to show the issue you are seeing? Based on the description, I think one of these 2 options might work for you.
- Luke
Hi!
Now we are on ArcGIS Runtime for Qt V100.
Is there any information about putting images/pixmaps on the map EFFICIENTLY?
Thx
Norbert
Norbert-
Seeing that you can share a single Symbol with multiple Graphics (one to many), you have a few options with PictureMarkerSymbol:
- Create one PictureMarkerSymbol with QImage and share that symbol between graphics
- Create SimpleRenderer with symbol as PictureMarkerSymbol using QImage and apply to GraphicsOverlay
If this does not work, can you please provide an example to show the issue you are seeing? Based on the description, I think one of these 2 options might work for you.
- Luke
Hi Luke!
Yes, option 1 (share that symbol between graphics) should be helpful.
(It´s nearly obvious, but due to our wrapper/architecture i didn`t recognize this option...)
Thank you very much!