Hi. I am trying to create a GeoImage from a .png from the internet. For example, an icon with the url “maps.google.com/mapfiles/kml/shapes/shaded_dot.png”. What is the best way to do this since I can’t just pass the url to the GeoImage constructor?
Creating a GeoImage from a .png on the web
Thanks for your post, attached is the sample code would you please try it?
Best Regards
Johnny
Post11316.txt (1.06 KB)
Thank you, I tried the attached code (which is almost identical to my attempt) and the GeoImage comes up null. Any idea why that is happening?
Hi Thaine,
Would you please provide us more information, like your dll version, your culture info, or if possible a “self-contained” sample will be highly appreciated. On our end the problem didn’t show up, here is a video of our test, please check it out: screencast.com/t/ovd2gXqNmaHS
Waiting for your further informaition
Summer
Hello again, sorry for the delay. Attached is most of my project. Unfortunately, it was too big to attach the whole thing. It is missing MapSuiteCore.xml and the KML file it references (which can be downloaded from activeearth.com/download/fcstWeather.kml). In the file KmlFeatureSource.cs there is a function called getAllStyles. Near the top of getAllStyles is the code for creating the point styles. I hope you can recreate the problem.
Hi Thaine,
Thanks for your further information, I tried to download the “ServicesEditionSample_StylesWithInMemoryFeatureLay”, but I am sorry to say it isn’t successfully downloaded, would you please send it to forumsupport@thinkgeo.com. Once we get your sample, we will debug it immediately.
Waiting for your further information.
Summer
Done. Thanks for the help!
Hi Thaine,
Thanks for your sample, but I am sorry to say that there are not runnable, attached is our runnble sample would you please replace the “URLString” with your own url to make a test?
Hope it helps.
Summer
009_008_007_006_005_004_003_002_001_sample.zip (10.5 KB)
What do you mean “not runnable”? I can’t get your sample to run either!
Hi Thaine,
Sorry for telling you that the reason which caused the sample unrunable is that the kml file could not be accessed(shown in the following picture) from the link in previous post on our end, so we are not able to get the iconstring to show the image. Would you please send the kml file to forumsupport@thinkgeo.com?
Waiting for your further information
Best Regards
Summer
Hi Thaine,
Thanks for the new download information, we have tried to use Chrome, IE and FireFox, to download the kml file, but maybe because the kml file is too big, all explorers jamed during the downloading after serrial tries, so, sorry to say that we still are not able to get the kml file, would you please send it to forumsupport@thinkgeo.com? once we get the kml file, we will debug it immediately.
Sorry for the inconvenience and waiting for your kml file.
Summer
Sorry, we were having connection issues that probably caused that. Try this one norrisfamilyindustry.com/fcstWeatherKML.zip
Hi Thaine,
Thanks for your data, we test the iconstring, seems they are ok, attached is our test sample(to make it run, some amendment is added) would you please try it? Here is a result image of our test
Best Regards
Summer
StylesWithInMemoryFeatureLayer.zip (20.6 KB)
Fixed! Thank you for your help!
Hi Thaine,
Great to hear it helped, if you have any more question, please feel free to let us know.
Best Regards
Summer