|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
getting images to show as icons on mapHi, 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" : " "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" : " "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" : " "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 _______________________________________________ General mailing list General@... http://simile.mit.edu/mailman/listinfo/general |
|
|
RE: getting images to show as icons on mapTo 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 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" : "
"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" : "
"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" : "
"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 |