8 of 8
8
Geocoding
Posted: 19 May 2008 10:09 PM   [ Ignore ]   [ # 127 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1590
Joined  01-05-2007

So is there anything I’m missing here?

I have this code -

{exp:weblog:entries weblog="geomap" limit="1"}
    {location_geo_raw}
        {latitude}
, {longitude}
    {
/location_geo_raw}
{
/exp:weblog:entries}

Which outputs the co-ordinates correctly.

BUT if I use this code -

{exp:weblog:entries weblog="geomap" limit="1"}
    {location_geo width
="400px" height="200px"}
{
/exp:weblog:entries}

I get nothing at all.

Do I need to add the Google API key at the top or anything else to my template to get this working?

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 09 June 2008 01:30 AM   [ Ignore ]   [ # 128 ]  
Lab Technician
RankRankRankRank
Total Posts:  1018
Joined  03-25-2005

Do I need to add the Google API key at the top or anything else to my template to get this working?

No, on mine if I view source the key is added automatically. Try without width/height and see if default works…

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 08 July 2008 02:45 AM   [ Ignore ]   [ # 129 ]  
Grad Student
Rank
Total Posts:  54
Joined  02-07-2006

Great extension. Just wondered if there’s an easy way of using it on multiple sites using the Multiple Site Manager - works fine, apart from I need to supply a different API key for each site, since they’re on different domains? All works fine apart from I get the popup from Google telling me it’s the wrong API key, if I’m not on the original site.

Profile
 
 
Posted: 14 July 2008 11:05 AM   [ Ignore ]   [ # 130 ]  
Grad Student
Rank
Total Posts:  54
Joined  02-07-2006

OK, So I worked out that I can override the key with the key=”” parameter in the templates of one of the sites, so that shouldn’t be an issue. Only problem now is that I can’t see the maps in the control panel when I’m not editing the first site I set up. Any ideas?

EDIT: Just partly sorted this out - turns out that (on my site at least) if the field isn’t set to show by default, then the map editing widget comes up without any map tiles showing. Weird, but manageable.

Now I’m coming up against the problem that the maps don’t seem to show on the front end, even though they do on the backend. Not quite sure why, just not outputting any markup in these new templates.

Profile
 
 
Posted: 22 August 2008 07:57 AM   [ Ignore ]   [ # 131 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  314
Joined  05-11-2005
sneers - 11 January 2008 09:05 AM

I just ran into a little trouble: with GeoCoordinates installed the Edit Categories link in the Publish form disappears. Anyone else experience this? Or could it be a combination of other factors and/or installed extensions?

Thanks for this extension, Mark!
I, too, am having the same issue that sneers reported. Edit categories now gone. Any suggestions on a code edit that can bring this back? Would love to be able to have both the map and edit categories working ok.

 Signature 

Websites with impact. Websites that substantially grow your business.
http://www.designbyreese.com

Profile
 
 
Posted: 16 October 2008 02:01 PM   [ Ignore ]   [ # 132 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  149
Joined  05-14-2008

I don’t know if anyone has already done this but I needed {zoom} as a variable so I edited the code.

Heres the edit if anyone needs it.

Around line 522 - ext.geo.php

if(count($field_data) > 0)
{
    
foreach($field_data as $point)
    
{
        
list($x, $y, $zoom) = preg_split("/\s*,\s*/", $point);
        if(!
is_numeric($x) || !is_numeric($y) || !is_numeric($zoom)) continue;

        
$tmp_str = $tags[2][$key];

        
$tmp_str = str_replace(LD."longitude".RD, $x, $tmp_str);
        
$tmp_str = str_replace(LD."latitude".RD, $y, $tmp_str);
        
$tmp_str = str_replace(LD."zoom".RD, $zoom, $tmp_str);

        
$looping_return.= $tmp_str;
    
}
}

Best Regards

Emily

 Signature 

Emily Griffiths | NuBlue Web Solutions | Lancaster UK

Profile
 
 
   
8 of 8
8
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64915 Total Logged-in Users: 16
Total Topics: 81870 Total Anonymous Users: 26
Total Replies: 440147 Total Guests: 179
Total Posts: 522017    
Members ( View Memberlist )
Newest Members:  Suman KumarsmilepolitelyrvmcleodbjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcf