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
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