Actually, a peek at the code (map-view.js) suggests that you can only
set borderColor to a fixed color value---not something that varies
according to an expression. It's the fill color that can vary.
Obviously varying border color would be a desirable feature to add to
the map view, once it is released for exhibit 3.
On 6/24/2012 9:33 AM, lostexpectation wrote:
how do you if possible set different polygon border colours
you say
borderColor: default to the color setting, or whatever that a color
coder specifies
that requires ex:colorKey=".x" but is used for the markers colours
how do you set a colour key for the border colours
using google spreadsheets and 2 linked collections
page http://dublinstreams.com/localpolitics/dublin/dublin.html
On Sunday, 21 June 2009 02:49:44 UTC+1, David Huynh wrote:
Hi all,
Another new feature to check out / test is the support for
polygons and
polylines together with point markers on a single map view:
http://trunk.simile-widgets.org/exhibit/examples/polymap/medieval-mediterranean.html
<http://trunk.simile-widgets.org/exhibit/examples/polymap/medieval-mediterranean.html>
(data from John Saul)
http://trunk.simile-widgets.org/exhibit/examples/polymap/election08.html
<http://trunk.simile-widgets.org/exhibit/examples/polymap/election08.html>
The 3 walls on the first map are click-able.
In addition to
ex:latlng=" expression "
you can also specify
ex:polygon=" expression "
ex:polyline=" expression "
Polygons and polylines must be in different properties than lat/lng
points, and each polygon or polyline is specified as a semicolon
separated string of lat/lng pairs, e.g.,
"43.773263,11.255505;43.773325,11.256141;43.773067,11.256157;43.773005,11.255497"
If your data happens to use something other than semicolons, say
|, then
you can set the separator like so
ex:latlngPairSeparator="|"
If your lat/lng pairs happen to be lng/lat instead, you can also
specify
that
ex:latlngOrder="lnglat"
There are 4 more new settings
borderOpacity: default to 0.5
borderWidth: default to 1
borderColor: default to the color setting, or whatever that a
color
coder specifies
opacity: for polygons' fills, default to 0.7
If you want to try it on your own exhibit, link to this API
http://trunk.simile-widgets.org/exhibit/api/exhibit-api.js
<http://trunk.simile-widgets.org/exhibit/api/exhibit-api.js>
Thanks,
David
--
You received this message because you are subscribed to the Google
Groups "SIMILE Widgets" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/simile-widgets/-/R9CryUN43tEJ.
To post to this group, send email to simile-widgets@googlegroups.com.
To unsubscribe from this group, send email to
simile-widgets+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.
--
You received this message because you are subscribed to the Google Groups "SIMILE
Widgets" group.
To post to this group, send email to simile-widgets@googlegroups.com.
To unsubscribe from this group, send email to
simile-widgets+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.