> Congratulations on creating such a neat widget :)
Thank you. I've turned to Widget recently and found it to be quite powerful.
I've made some custom widgets (basically to parse XML every minute to provide
real time updates of certain information. I've also made a custom map widget so
that I can display an image as a map with Openlayers (something which the Map
extension used to have but was disappeared with version 1:
> Serves as a good example of what you can do with the ask API as well.
>The things that SMW needs to improve upon is a easy way to get the KML link
>> and to add a "name" tag to the KML so that the parser won't have yo show
>> the file name, which I'd really long and ugly if it is an export string
>> from SMW, which you can see in the example.
>So you basically want named queries? Not sure how helpful this is in
>general, though I can see how it's nice to have in your usecase. Ideally
>(Semantic) Maps would simply have the functionality you need so you would
>not have to bother with two step approach.
The KML produced with the ask API does not have a "<name>" tag. It would be nice
to have a parameter that would insert a name tag into the kml output. However I
have a workaround. If there's no <name> tag, the file name (which includes the
long api tag) will appear in the sidebar.
Also, the current KML output does not provide custom icons. In Maps and Semantic
Maps map output you can, but not in KML. The current workaround for the widget
is to allow a custom icon be specified in the widget to replace all default
icons (that aren't specified), but if I want to have a more complex map (which
can be produced easily under Semantic Maps with Semantic Compound Queries.), I
will have to export on of the queries as an actual file, edit the file to
include custom icons, and include the map as an external file. See example:
>> So far SMW only provides barebone KML output.
>I'm happy that the KML output is working for you at all. Last weekend I was
>cleaning up the code for the upcoming 3.0 version and the KML printer
>looked broken to me. Might have been caused by some recent change though.
>Not sure what the status of geo shapes support in SMW is (Nischay was
>working on this), but once that's done, it should be trivial to output
>lines and polygons with the KML printer.
I am using the original version 2 of the SM. The output in 2.0.1 is not working.
However with version 2.0, the special query page only allows you to download a
file. Version 1 rather produces a kml link (which you can copy and use it
somewhere else like this widget, or click on it to download the file.) I can
still get a KML link with an ask query on a regular page but it is a bit more of