Skip to content

Binarytales/OnePageMapSite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple one page site to show a google map, e.g.

http://brightonwifi.com

note: mobile/iPhone detection/css needs lots of work, example at:

http://eatinbrighton.com (visit on iPhone)


API keys
==========
http://code.google.com/apis/maps/signup.html

make sure to get your own API key for the domain you intend to use this code on. and also an API key for a dev domain if you need.

enter map details in config.php


Ads
==========
you can show ads in the left bar, sign up to adsense at http://google.com/adsense/ and then configure css:

1. in screen.css, #placesContainer, change:
	bottom:0px;
	to
	bottom:260px

2. in screen.css, #gads, remove line:
	display: none;

3. in index.php (IE fix), #placesContainer, change:
	height: expression(document.body.clientHeight - 100 );
	to
	height: expression(document.body.clientHeight - 350 );

4. enter account details in config.php


Credits
==========
main coding by Brian Suda, http://suda.co.uk - http://twitter.com/briansuda
adaptations by Josh Russell, http://joshrussell.com - http://twitter.com/joshr

About

creates a simple one page site to display a Google "My Maps" map, e.g. http://brightonwifi.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%