add local search in admin geotrak

Phoca Gallery - image gallery extension
iconcept
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 16 Jul 2008, 19:32

add local search in admin geotrak

Post 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);
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: add local search in admin geotrak

Post 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 :(
If you find Phoca extensions useful, please support the project
Post Reply