getting images to show as icons on map

View: New views
3 Messages — Rating Filter:   Alert me  

getting images to show as icons on map

by Undeen, Don :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

I’m trying to get images to show up as icons on my map, like this example here does:

http://simile.mit.edu/exhibit/examples/presidents/presidents-2.html

 

I’ve got a json file that looks like this:

{

      "items" :      [

            {

                  "ObjectNumber" :   "1970.100.7",

                  "imageURL" : "100px-Gerald_Ford.jpg",

                  "DisplayName" :    "J. and J. G. Low Art Tile Works",

                  "Classification" : "Ceramic",

                  "ObjectName" :     "Border Tile",

                  "DisplayLocation" :       "Chelsea, Massachusetts",

                  "DateEnd" :        1881,

                  "type" :           "ArtObject",

                  "label" :          "583",

                  "DateBegin" :      1878,

                  "ObjectID" :       583

            },

            {

                  "ObjectNumber" :   "33.120.105",

                  "imageURL" : "100px-Gerald_Ford.jpg",

                  "DisplayName" :    "Benjamin Burt",

                  "Classification" : "Silver",

                  "ObjectName" :     "Beaker",

                  "DisplayLocation" :       "Boston, Massachusetts",

                  "DateEnd" :        1800,

                  "type" :           "ArtObject",

                  "label" :          "398",

                  "DateBegin" :      1770,

                  "ObjectID" :       398

            },

                        {

                  "ObjectNumber" :   "33.120.105a",

                  "imageURL" : "100px-Gerald_Ford.jpg",

                  "DisplayName" :    "Benjamin Burta",

                  "Classification" : "Silvera",

                  "ObjectName" :     "Beakera",

                  "DisplayLocation" :       "Boston, Massachusetts",

                  "DateEnd" :        1800,

                  "type" :           "ArtObject",

                  "label" :          "399",

                  "DateBegin" :      1770,

                  "ObjectID" :       399

            },

            { id: '583', addressLatLng: '42.39817,-71.03085' },

 

      { id: '398', addressLatLng: '42.35888,-81.05682' },

      { id: '399', addressLatLng: '52.35888,-71.05682' }

      ],

      "types" : {

            "ArtObject" : {

                  "label" : "Object",

                  "pluralLabel" : "Objects"

                  }

            },

     

     

      "properties" : {

            "ObjectID" :  {

                  "valueType" : "number"

            },

            "DateBegin" : {

                  "valueType" : "number"

            },

            "DateEnd" :   {

                  "valueType" : "number"

            }

      }

}

 

The 100px-Gerald_Ford.jpg file is in the same folder as the rest of my code.

 

When I load the map, the image doesn’t appear.

 

One thing is, I’m running all this on localhost. Would this cause any problem with the loading of the image?

 

I’ve also tried referencing external image with full urls, also to no avail.

 

Anyone know what might be causing this?

 

Many thanks for all your help and hard work.

 

 

Don Undeen

Senior Information Architect

Metropolitan Museum of Art

don.undeen@...

 

 


_______________________________________________
General mailing list
General@...
http://simile.mit.edu/mailman/listinfo/general

RE: getting images to show as icons on map

by Undeen, Don :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

To expand on this a bit:

I’ve downloaded and installed the exhibit code locally.

Now, when I reference an image on my server (my local machine), or anything within my internal network, the image does not show up.

However, when I reference an image on the web itself, the image DOES show up.

This is even though all the code I’m running is served from my own computer.

 

Can someone explain what I may be doing wrong?

 


From: general-bounces@... [mailto:general-bounces@...] On Behalf Of Undeen, Don
Sent: Friday, June 20, 2008 12:23 PM
To: General@...
Subject: getting images to show as icons on map

 

Hi,

I’m trying to get images to show up as icons on my map, like this example here does:

http://simile.mit.edu/exhibit/examples/presidents/presidents-2.html

 

I’ve got a json file that looks like this:

{

      "items" :      [

            {

                  "ObjectNumber" :   "1970.100.7",

                  "imageURL" : "100px-Gerald_Ford.jpg",

                  "DisplayName" :    "J. and J. G. Low Art Tile Works",

                  "Classification" : "Ceramic",

                  "ObjectName" :     "Border Tile",

                  "DisplayLocation" :       "Chelsea, Massachusetts",

                  "DateEnd" :        1881,

                  "type" :           "ArtObject",

                  "label" :          "583",

                  "DateBegin" :      1878,

                  "ObjectID" :       583

            },

            {

                  "ObjectNumber" :   "33.120.105",

                  "imageURL" : "100px-Gerald_Ford.jpg",

                  "DisplayName" :    "Benjamin Burt",

                  "Classification" : "Silver",

                  "ObjectName" :     "Beaker",

                  "DisplayLocation" :       "Boston, Massachusetts",

                  "DateEnd" :        1800,

                  "type" :           "ArtObject",

                  "label" :          "398",

                  "DateBegin" :      1770,

                  "ObjectID" :       398

            },

                        {

                  "ObjectNumber" :   "33.120.105a",

                  "imageURL" : "100px-Gerald_Ford.jpg",

                  "DisplayName" :    "Benjamin Burta",

                  "Classification" : "Silvera",

                  "ObjectName" :     "Beakera",

                  "DisplayLocation" :       "Boston, Massachusetts",

                  "DateEnd" :        1800,

                  "type" :           "ArtObject",

                  "label" :          "399",

                  "DateBegin" :      1770,

                  "ObjectID" :       399

            },

            { id: '583', addressLatLng: '42.39817,-71.03085' },

 

      { id: '398', addressLatLng: '42.35888,-81.05682' },

      { id: '399', addressLatLng: '52.35888,-71.05682' }

      ],

      "types" : {

            "ArtObject" : {

                  "label" : "Object",

                  "pluralLabel" : "Objects"

                  }

            },

     

     

      "properties" : {

            "ObjectID" :  {

                  "valueType" : "number"

            },

            "DateBegin" : {

                  "valueType" : "number"

            },

            "DateEnd" :   {

                  "valueType" : "number"

            }

      }

}

 

The 100px-Gerald_Ford.jpg file is in the same folder as the rest of my code.

 

When I load the map, the image doesn’t appear.

 

One thing is, I’m running all this on localhost. Would this cause any problem with the loading of the image?

 

I’ve also tried referencing external image with full urls, also to no avail.

 

Anyone know what might be causing this?

 

Many thanks fo