Page 1 of 1

add local search in admin geotrak

Posted: 30 Jul 2008, 00:25
by iconcept
please help me for add local search
this file is in administrator/components/com_phocagallery/views/phocagalleryg/tmpl/default.php


// Create and Center a Map
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());

// bind a search control to the map, suppress result list
map.addControl(new google.maps.LocalSearch(), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)));
}
}
GSearch.setOnLoadCallback(initialize);

Re: add local search in admin geotrak

Posted: 31 Jul 2008, 11:00
by Jan
Hi, the problem is:

- I don't know javascript
- I don't know Google API :(

I have searched the google whole month to find the solution for getting the lang and lat from the google map... so I am to the right person who can help you :(