Cool, nice addon. I have some questions though.
Since there are no active storms, I can't really test it.
1. Your addon would only display one storm, what if there were 2 or 3? I know that seems unlikely most of the year, but in the peak of storm season, sometimes there are more than 1.
2. How does wunderground.com/tropical display the Latitude and Longitude? (Again, I can't test it since there are no storms.)
For instance sometimes it can be displayed like this:
HMS:
W 77° 2' 10.0781" or
DM:
W 77° 2.167969' or
Decimal:
-77.0361328125°
All are correct methods to display Longitude, but not easily translatable to (x,y) coordinates because of the +/- thing. With "Decimal" being the easiest(obviously).
Judging from your code:
Code: Select all
[mStormLatitude-1]
Measure=Plugin
Plugin=WebParser.dll
URL=[mGetActiveStorms]
StringIndex=5
Substitute="N":"","S":"","E":"","W":""
Group=HaveStorm
Disabled=1
It looks as if the coordinates are being displayed in either HMS or DM. Again, since there are no active storms, I can't test it.
3. If the Latitude and Longitude are correct, then your icon being displayed still isn't center over the "point" where the storm is at. You would need to modify the position slightly.
X=((((([mStormLongtitude-1]+390)%360)/360)*#image.Width#)+5-11)
Y=((((([mStormLatitude-1]+390)%360)/360)*#image.Width#)+5-11)
The
+5-11 because the map is displayed 5 pixels from the border and the 11 is half of your storm icon. The reason I didn't have that extra part of the formula in the first version was because my icon was 10x10, so I didn't need it.
Anyway, I am impressed with this addon, and when I can test it, I will incorporate it with EarthquakeMap - assuming you don't mind.
-Brian