Re: getting images to show as icons on map

10 views
Skip to first unread message

David Huynh

unread,
Jun 20, 2008, 2:54:06 PM6/20/08
to simile-...@googlegroups.com, Don.U...@metmuseum.org
Discussion moved from gen...@simile.mit.edu due to the reason here
http://simile.mit.edu/mail/ReadMsg?listName=General&msgId=24861

Undeen, Don wrote:
>
> I’m guessing this has something to do with the GoogleMaps api being
> externally located?
>
> ------------------------------------------------------------------------
>
> *From:* general...@simile.mit.edu
> [mailto:general...@simile.mit.edu] *On Behalf Of *Undeen, Don
> *Sent:* Friday, June 20, 2008 2:35 PM
> *To:* General List
> *Subject:* RE: getting images to show as icons on map
>
> 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?
>
It's probably due to the relative URLs of the images. So instead of just

ex:icon=".imageURL"

Try

ex:icon="concat('http://wherever.your.site.is/where/the/image/dir/is/',
.imageURL)"

David

donundeen

unread,
Jun 24, 2008, 1:42:57 PM6/24/08
to SIMILE Widgets
My .imageURL is already an absolute path:
"items" : [
{
"ObjectNumber" : "1970.100.7",
"imageURL" : "http://localhost/eclipse/MetStories/exhibit/100px-
Gerald_Ford.jpg",
[etc...]



problem is when I use localhost, or a machine name, the image doesn't
show up, even though the app and exhibit code are all being hosted
locally.

because when I have:
"imageURL" : 'http://undeen.com/exhibit/100px-Gerald_Ford.jpg',

the image shows up.

Which is why I guessed that it has to do with the Google Maps API not
being local.




On Jun 20, 2:54 pm, David Huynh <dfhu...@alum.mit.edu> wrote:
> Discussion moved from gene...@simile.mit.edu due to the reason herehttp://simile.mit.edu/mail/ReadMsg?listName=General&msgId=24861
>
>
>
> Undeen, Don wrote:
>
> > I’m guessing this has something to do with the GoogleMaps api being
> > externally located?
>
> > ------------------------------------------------------------------------
>
> > *From:* general-boun...@simile.mit.edu
> > [mailto:general-boun...@simile.mit.edu] *On Behalf Of *Undeen, Don

David Huynh

unread,
Jun 24, 2008, 4:09:08 PM6/24/08
to simile-...@googlegroups.com
Don,

The standard map extension uses the "painter" service at
http://simile.mit.edu/painter/ to generate those map marker images. And
that service, being external, cannot see your localhost URLs. There are
2 options:

- run the painter service yourself and then in your HTML, pointer to it
like so

<html>
<head>
<link rel="exhibit/map-painter"
href="http://localhost/painter/painter?" />

- or use the simple map extension by Dan Lange (he posted a message
previously about it). His extension renders the markers right in the
browser.

David

donundeen

unread,
Jul 9, 2008, 12:57:25 PM7/9/08
to SIMILE Widgets
thanks for the response David, sorry it took me so long to get back to
you.
I'll definitely give your suggestions a try!

don

On Jun 24, 4:09 pm, David Huynh <dfhu...@alum.mit.edu> wrote:
> Don,
>
> The standard map extension uses the "painter" service athttp://simile.mit.edu/painter/to generate those map marker images. And
Reply all
Reply to author
Forward
0 new messages