Hi! This sounds like a great feature, but I am having trouble getting
it to work. I am new to Exhibit programming, so maybe I am doing
something obviously wrong when I tried to implement it.

This is for a school project - at UT-HSC Houston (University of Texas
- Health Science Center). I don't have a public web site for it, so
I've included my code below. (Sorry, can't seem to figure out how to
add attachments.)

Thanks in advance,

Risa Myers
[email protected]

html
----------------------------------------------------------------------
<html>
<head>
   <title>Polygon Test</title>

    <link href="polygonTest.js" type="application/json" rel="exhibit/
data" />

   <script src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-
api.js"
           type="text/javascript"></script>


    <script src="http://static.simile.mit.edu/exhibit/extensions-2.0/
map/map-extension.js?gmapkey="
           type="text/javascript"></script>
    <!-- map polygons and polylines -->
    <script src="http://trunk.simile-widgets.org/exhibit/api/exhibit-
api.js"></script>


</head>
<body>
   <h1>Polygon Test</h1>

   <!-- define the data sets / collections -->
   <div ex:role="exhibit-collection" id="Polygon"
ex:itemTypes="Polygon"></div>


   <!-- set the display info for each item type -->
   <table ex:role="exhibit-lens" ex:itemTypes="Polygon">
              <tr>
                 <td class="PolygonInfo">
                   <div><b>Polygon: </b><span ex:content=".Polygon"
class="Polygon"></span> <br>
                  </td>
                </tr>

  <table width="100%">
       <tr valign="top">
           <td ex:role="viewPanel">

              <div ex:role="view"
                        ex:viewClass="Map"
                    ex:collectionID="Polygon"
                                    ex:label="Polygon Map"
                        ex:latLng=".latLng"
                        ex:center="31.187228,-98.763376"
                                ex:mapHeight="600"
                                ex:colorKey=".type"
                    ex:polygon=".Polygon"
                    ex:borderWidth="7"
                    ex:borderOpacity="1"
                                        ex:zoom=5>
               </div>



            </td>
       </tr>
   </table>
</body>
</html>
--------------------------------------------------------
js data file
--------------------------------------------------------

{
        types: {
                "Polygon" : {
                        pluralLabel: "Polygons"
                }

        },
        properties : {
        },
        "items" :       [

        {
                "type" : "Polygon",
                "label" : "TestPolygon",
                "Polygon" :
"33.169904,-98.629174;29.792254,-95.403362;33.559733,-101.88205"
        }
        ]
}



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to