This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README | Mon Aug 18 18:44:59 -0700 2008 | |
| |
Rakefile | Mon Aug 18 18:44:59 -0700 2008 | |
| |
gmaps_extension.rb | Mon Aug 18 18:44:59 -0700 2008 | |
| |
lib/ | Mon Apr 27 09:14:03 -0700 2009 | |
| |
public/ | Mon Aug 18 18:44:59 -0700 2008 | |
| |
test/ | Mon Aug 18 18:44:59 -0700 2008 |
README
= Gmap Tags
Created by: Benny Degezelle - gorilla-webdesign.be
Version: 0.1
Contact: benny AT gorilla-webdesign DOT be
Adds a <r:gmap> tag to ease gmap implementation.
Any feedback greatly appreciated
= Installation and usage:
1/ rake radiant:extensions:gmaps:install
Copies gmaps.js to your instance javascripts folder.
2/ Get yourself a Gmap API key on http://code.google.com/apis/maps/signup.html
3/ put these in your application header;
<script type="text/javascript" src="/javascripts/gmaps.js"></script>
<r:if_url matches="/directions">
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=YOUR_API_KEY"></script>
</r:if_url>
Replace YOUR_API_KEY and the if_url regexp with your own values.
If your Gmap is viewable on every page of your site, you can drop the if_url tag altogether of course.
4/ Use the tag like so;
<r:gmap id="map" name="Tarra Lifestyle" ll="51.15394,2.96294" street="Stationsstraat 73" city="8470 Gistel"
country="Belgium" balloon_stuff="<a
href="http://maps.google.com/maps?f=q&hl=nl&geocode=&q=Stationsstraat+73,+8470+Gistel,+Gistel&sll=51.233547,2.963562&s
spn=0.570098,1.227722&ie=UTF8&z=16&iwloc=addr&om=0">Grotere versie<\/a>" />
The 'balloon_stuff' attribute can be any HTML that will be loaded onto the end of the balloon content. Be sure to
escape all HTML closing tags.
You'll probably also want to edit gmaps.js to change the strings about directions, because those are in dutch atm.






