Google Map Project October 13, 2008
Posted by ordinarywebguy in GMaps, Google Maps, Project Bookmark.4 comments
Just a project bookmark.
My recent project at YW, Google Map API integration. It also utilizes jQuery, Zend_Db and Zend_Paginator.
Check it out here: http://88.191.66.96/index.php
GeoAddress – WordPress Plugin 1.0 with Easy Google Map Class July 26, 2007
Posted by ordinarywebguy in GMaps, Google Maps, PHP, PHP Classes, Wordpress, Wordpress Plugin.4 comments
Firma Konrad Priemer had developed a WordPress Plugin named GeoAddress w/ the integration of EasyGoogleMap and HN Captcha. Both were class entries at phpclasses.org.
At the moment EasyGoogleMap has 1827 downloads already. I hope I’ve helped those 1827 users.
I have plans to improve EasyGoogleMap Class including the new features of Google Maps (draw lines, street view, traffic, etc). Time is only what I look and wait to pursue this.
Anyway, about GeoAddress:
Geo ADDRESS is a WordPress Plugin for providing a contact/address list in a Google map by means of markers to be represented can. The representation the Google map and/or the address form can be affected in the Adminbereich by means of numerous options.
By default under the Google map a complete list (activated) of the addresses is spent. Who would like to rather pack this list into a Sidebar, this can realize by means of the provided GeoAddress Sidebar Widget.
See more details:
http://www.php-developer-blog.de/50226711/geoaddresswordpressplugin_far_googlemaps.php
http://wp.php-guru.de/10/geoaddress-wordpress-plugin-10/
View Demo:
http://wp.php-guru.de/adressliste/
Download:
http://wp.php-guru.de/download-geoaddress/
Thanks Conny for using EasyGoogleMap Class!
2nd Contribution at PHPClasses.org (EasyGoogleMap) March 29, 2007
Posted by ordinarywebguy in GMaps, Google Maps, Javascript, PHP.4 comments
The class generates necessary JS and HMTL codes that resembles like my last post regarding google maps. It was approved earlier than I expected. Thanks again to the people of phpclasses.org.
This was to make a life of a PHP Developer easier with the integration of GMaps within their websites. But as of now the GClientGeocoder() class only geocode addresses in France, Italy, Germany, Spain, Portugal, Japan, Australia, New Zealand, Canada, US, and the Netherlands.
For more info regarding GClientGeocoder() class: http://code.google.com/support/bin/answer.py?answer=62668&topic=10946
You can download EasyGoogleMap Class here:
Tar: http://www.phpclasses.org/browse/package/3801/download/targz.html
Zip: http://www.phpclasses.org/browse/package/3801/download/zip.html
Happy EasyGoogleMapping!!!
GMaps with PHP and Mysql January 17, 2007
Posted by ordinarywebguy in GMaps, Google Maps, MySQL, PHP.6 comments
I’ve seen lots of gmaps website integration samples and tutorials but I mostly found out that it’s still using the old way of getting the latitude and longitude for a particular location in other website’s geocoding services http://rpc.geocoder.us/ for US locations and http://geocoder.ca/ for US and Canada locations then storing it in database, extracting it to xml file or within javascript code. That was when gmaps doesn’t have yet the GClientGeocoder() class. And here’s my version of it.
Extracting data in DB.
gmaps_js.php
var gmarkers = [];
var htmls = [];function gmapsLoad() {
if(GBrowserIsCompatible()) {
if(!document.getElementById(‘map’)) return false;
var map = new GMap2(document.getElementById(‘map’));
//map.enableContinuousZoom();
//map.enableDoubleClickZoom();
map.addControl(new GSmallMapControl());
map.addControl(new GScaleControl());
var geocoder = new GClientGeocoder();var icon = new GIcon();
var markerStyle = ‘Push-Pin’;
var markerColor = ‘Slate’;
icon.image = ‘http://google.webassist.com/google/markers/pushpin/slate.png’;
icon.shadow = ‘http://google.webassist.com/google/markers/pushpin/shadow.png’;
icon.iconSize = new GSize(40,41);
icon.shadowSize = new GSize(40,41);
icon.iconAnchor = new GPoint(7,38);
icon.infoWindowAnchor = new GPoint(26,4);
icon.printImage = ‘http://google.webassist.com/google/markers/pushpin/slate.gif’;
icon.mozPrintImage = ‘http://google.webassist.com/google/markers/pushpin/slate_mozprint.png’;
icon.printShadow = ‘http://google.webassist.com/google/markers/pushpin/shadow.gif’;
icon.transparent = ‘http://google.webassist.com/google/markers/pushpin/slate_transparent.png’;
0) {### START OF LOOP ###
var address_ {LOOP INDEX}= {
infowindowtext: “{LOCATION INFO ARRAY }”,
full: “{LOCATION ADDRESS ARRAY}”
};htmls[] = address_{LOOP INDEX}.infowindowtext;
geocoder.getLatLng (
address_{LOOP INDEX}.full,
function(point) {
if(point) {
map.setCenter(point, 13);
var marker = new GMarker(point, icon);
GEvent.addListener(marker, ‘click’, function() {
marker.openInfoWindowHtml(address_{LOOP INDEX}.infowindowtext);
});
gmarkers[] = marker;
map.addOverlay(marker);
}
else {
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}}
); /*end geocoder.getLatLng*/### END OF LOOP ###
} /*endif*/
} /*end function */function myclick(i) {
if (gmarkers[i])
gmarkers[i].openInfoWindowHtml(htmls[i]);
else {
var htstring = htmls[i];
var stripped = htstring.replace(/(]+)>)/ig,”");
alert(“Location not found: ” + stripped);
} /*endif*/
} /*end function */
gmaps_call.js
window.onunload = function() {
GUnload();
}
/*gmaps_onload*/
if(window.gmapsLoad) gmapsLoad();
