Hi Risa,

I'd suggest first to try using only one version of the API. Note that 
your current HTML file is referring to both version 2.0 and the trunk 
version, which likely conflict with each other. As you can see in

http://trunk.simile-widgets.org/exhibit/examples/polymap/medieval-mediterranean.html

it's using
   
    <script src="../../api/exhibit-api.js"></script>
    <script src="../../api/extensions/map/map-extension.js"></script>

which have relative URLs, which when you use on your own site you should 
change to absolute URLs like so
  
    <script 
src="http://trunk.simile-widgets.org/exhibit/api/exhibit-api.js";></script>
    <script 
src="http://trunk.simile-widgets.org/exhibit/api/extensions/map/map-extension.js";></script>

Remove all references to static.simile.mit.edu. Those are outdated. The 
"trunk" version is the version in development and not yet released.

David


Risa wrote:
> 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