Please, need help for a school project

50 views
Skip to first unread message

Steve

unread,
Apr 4, 2012, 4:00:36 PM4/4/12
to simile-...@googlegroups.com
To the group,

What I would like to do is to be able to map an object to multiple (more than 1, but could be more than 3 or 4) different sets of longitude and latitude coordinates.  I have been play around with proxy, in Exhibit Map, but not sure if this is my best solution.  Can anyone send me an example json file and associated code?

thanks

Steve

Steve,

I'd suggest that you email simile-...@googlegroups.com, as there are more people there to help you out. I'm no longer providing technical support for Simile Exhibit myself.

David

On Wed, Apr 4, 2012 at 12:49 PM, David Huynh <dfh...@csail.mit.edu> wrote:


-------- Original Message --------
Subject: Need your help on a class project using Exhibit Map, ex:proxy attribute?
From: "Martino, Steve" <stephen...@harvard.edu>
To: dfh...@csail.mit.edu
CC: 

David,

I am sorry to bother you, but I selected Simile Exhibit for a class project at Harvard and I need to be able to plot on a Map a species of a particular tropical fish that exists in multiple locations, lets say Brazil, South America, and Cambridge, Ma.

I have been reading through the documentation for proxy: and this seems to be what I want to do, but I can't seem to get it setup correctly.

Here is my map div:

<div ex:role="view"
                        ex:viewClass="Map"
                        ex:type="normal"
                        ex:overviewControl="True"
                        ex:label="Distribution"
                        ex:lat=".latitude"
                        ex:lng=".longitude"
                        ex:colorKey=".party"
                        ex:colorCoder="party-colors"
                        ex:center="-10.0, -55.0"
                        ex:scaleControl="true"
                        ex:zoom="5"
                        ex:bubbleWidth="50"
                        ex:bubbleHeight="50"
                        ex:icon=".imageURL"
                        ex:shape="rectangle"
                        ex:shapeWidth="40"
                        ex:shapeHeight="30"
                        ex:mapHeight="1024"
                        >



I am using a json file for my data that contains, you will notice in the distribution field that this tropical fish can exist in multiple locations, and I have two longitude and latitude coordinates below ( I actually just made them up, for my app to work currently, I can only use one of them..

Can you help?

Thanks

Steve

{   label: 'L001',
            type: 'Loricariidae',
            pronunciation: 'terry gop LICK thees',
            scientificname: 'Pterygoplichthys joselimaianus  Weber, 1991',
            commonname: ["L-Number Only"],
            identification: 'Pterygoplichthys can be identified by the number of rays in the dorsal fin. More than 10 indicates that its a Pterygoplichthys. Most other plecos have 8 or fewer rays (in particular the larger Hypostomus species that are most likely to be confused with Pterygoplichthys). L001 is the same as L022.',
            distribution: [ "Tocantins River basin", "Amazon", "Lower Amazon", "Tocantins" ]
        },

        {   id: 'L001',
            longitude:'-49.5133781433105',
            latitude: '-2.25272011756897'
        },
        {   id: 'L001',
            longitude:'-47.1000',
            latitude: '-1.5500'
        },



martin

unread,
Apr 28, 2012, 1:13:33 PM4/28/12
to simile-...@googlegroups.com
I was curious about this as well and found a discussion of it here:
http://osdir.com/ml/web.simile.general/2007-02/msg00035.html

I tried setting up a simple example based on the above but as soon as I inserted :
ex:proxy=".city-visited"
I immediately got an error that " Items could not be plotted".

and this description:
http://simile.mit.edu/wiki/Exhibit/API/MapView
appears to suggest "an item" is singular?
I wouldn't mind using this but it doesn't work as expected...

Reply all
Reply to author
Forward
0 new messages