here's a svn diff of my simile checkout to make it work locally:
https://dev.livingreviews.org/projects/epubtk/attachment/ticket/410/diff.log
it's a bit messy - having not only the necessary changes but also
wrong turns i took.
it still needs a local painter script to create the markers for the map legend:
#!/usr/bin/env python
import sys
import cStringIO
import cgi
import cgitb; cgitb.enable()
from PIL import Image, ImageDraw
form = cgi.FieldStorage()
def paint(color='d00', type='marker'):
i = Image.new('RGBA', (20,20), (0,0,0,0))
if type == 'marker':
draw = ImageDraw.Draw(i)
draw.ellipse((1,1,19,19), fill='#%s' % color, outline='#000')
f = cStringIO.StringIO()
i.save(f,'PNG')
f.seek(0)
return f.read()
args = dict(color='d00', type='marker')
if form.has_key("background"):
args['color'] = form["background"].value
if form.has_key("renderer") and form['renderer'].value == 'map-marker-shadow':
args['type'] = 'shadow'
print "Content-type: image/png\n"
print paint(**args)
sys.exit(0)
On Fri, Dec 19, 2008 at 7:50 PM, Steve <[email protected]> wrote:
>
> Hi Robert,
> Thanks very much for the reference to that function. It would be
> really nice to get the default implementation as it has a number of
> other features.
>
> Would you mind elaborating on how you replaced the default painter?
>
> TIA,
> -Steve
>
> On Dec 19, 10:07 am, "Robert Forkel" <[email protected]> wrote:
>> just replaced the call to the painter script with a map icon factory i
>> fond
>> here:http://gmaps-utility-library.googlecode.com/svn/trunk/mapiconmaker/re...
>>
>>
>>
>> On Fri, Dec 19, 2008 at 7:04 PM, Steve <[email protected]> wrote:
>>
>> > Hi Larry,
>> > I agree hosting yourself makes the most sense and I've moved the
>> > source to my own server and I'm trying to run an app that uses Exhibit
>> > with the Google Maps extension but the problem is there appears to be
>> > references to things that aren't provided. For example, the painters
>> > (simile.mit.edi/painter...) for the map used in the map extension. I
>> > can't seem to find that anywhere, am I simply missing something?
>>
>> > Also, the reference to static.simile... is hardcoded throughout the
>> > source so there appears to be no easy way to direct it to a server of
>> > your own.
>>
>> > Having said those things, I understand this is open source thus I
>> > don't mind fixing the URL's myself (unfortunately, I don't have time
>> > right now to work on a better solution) but the missing piece are
>> > pretty crucial.
>>
>> > -Steve
>>
>> > On Dec 19, 9:54 am, Larry Kluger <[email protected]> wrote:
>> >> Hi Eric,
>>
>> >> In my humble opinion, you are *far* better off hosting the libraries
>> >> yourself rather than depending on an .mit.edu server.
>> >> Like, night and day better off.
>>
>> >> The Yahoo folks have studied the issues of people's caches being primed
>> >> and the effect is, unfortunately, much less than what would be hoped for.
>> >> The odds of one of your clients having a cached version of the Simile
>> >> libraries from some other Simile-based page that is not connected to your
>> >> app are tiny. Or smaller.
>>
>> >> Be vertically integrated, host it yourself.
>>
>> >> Regards,
>>
>> >> Larry
>>
>> >> ________________________________
>> >> From: Eric Pugh <[email protected]>
>> >> To: [email protected]
>> >> Sent: Friday, December 19, 2008 8:52:19 AM
>> >> Subject: Re: simile.mit.edu down?
>>
>> >> Joern,
>>
>> >> We are seeing the same thing. I had made the assumption that this
>> >> site would be more reliable then hosting it ourselves, and allow the
>> >> possiblity that folks might already have the javascript cached
>> >> locally, however, maybe we are better off hosting it ourselves :-(
>>
>> >> I know Google had an effort to host some big javascript libraries, is
>> >> there anything like that for the Simile assets?
>>
>> >> Eric
>>
>> >> On Dec 19, 2008, at 4:25 AM, Jörn Clausen wrote:
>>
>> >> > Hi!
>>
>> >> > I think simile.mit.edu is down. The site is not reachable, and so are
>> >> > sites still using the code hosted there.
>>
>> >> > Is this a planned downtime? Did I miss the EOL announcement??
>>
>> >> > --
>> >> > Joern Clausen
>> >> > [email protected]
>> >> >http://www.oe-files.de/oefiles/
>> >> >http://thebloeg.blogspot.com/
>>
>> >> -----------------------------------------------------
>> >> Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467
>> >> |http://www.opensourceconnections.com- Hide quoted text -
>>
>> - Show quoted text -
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---