Hi, I'm trying to create a custom IconStyle object to display an image from a file path. I am able to find the image file and I think I'm able to use the style on points, the thing is when I create points on the map they appear very small. In fact they are about 1 pixel. I can tell the point was created because I can see very small 1 pixel sized points on my map. Perhaps I'm using IconStyle incorrectly but I was wondering if you guys had any example, or if there is a property I need to set.
Here is a property named IconImageScale, this property allows you to scale the image up and down depending on how large or small you want it. It can be changed dynamically, so you could change it at every scale level to resize the bitmap based on the current scale. A scale of 1 would be the original size, while a scale of 2 would double the size. A scale of .5 would reduce the size of the image by half, and so on.
You can set it and have a try, see if the image been scale up is blur, is it is, I think there is something wrong with your png file itself.
So I found a solution, all I needed was an object of the baseclass “Style”. I didn’t know PointStyle could be given a GeoImage as parameter. This fixed all my problems, thanks.
I want to let you know that we also have a large number of sample in the Code Community in the category Styles where you see some more advanced aspects of Image Styles. If you are interested in the future, you can check for example, Adjusting Scaling Image Style, Animated Gif, Scaling Image Style etc in wiki.thinkgeo.com/wiki/Map_Suite_De...es_Samples. Thank you.