4 of 8
4
Geocoding
Posted: 09 April 2007 09:29 AM   [ Ignore ]   [ # 55 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

Hmm well it’s crashing IE 7 and so I would assume IE 6 as well (it does for me). Mark I know you were looking at this before - any thoughts on this?

Profile
 
 
Posted: 09 April 2007 09:32 AM   [ Ignore ]   [ # 56 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  06-12-2002

The page more or less renders, then i get an ‘operation aborted’ error and then it redirects to a “this page cannot be displayed” page. But it doesn’t crash the browser.

I can try to send screenshots if it would help. (It’ll require something of an itchy trigger finger—it all happens pretty fast—but i should be able to manage.) Just PM me an email address to send them to.

Adrienne

Profile
 
 
Posted: 09 April 2007 09:38 AM   [ Ignore ]   [ # 57 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

Actually you’re right - that’s what’s happening here. I wasn’t being accurate when I said it was crashing the browser. Thanks for looking alienne.

Profile
 
 
Posted: 09 April 2007 09:54 AM   [ Ignore ]   [ # 58 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

I’ve had to take down the maps for IE users since the site is live.  I’ve got a test page up that shows the problem for IE:

Linkage

Profile
 
 
Posted: 09 April 2007 01:26 PM   [ Ignore ]   [ # 59 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

So I’ve worked around this by using the raw data, including the javascript in the header and calling it onload.

Does anyone have a link to this working using the normal geocoding tag in the template?  Mark explained to me earlier basically what was happening, but I’m wondering if it has something to do with other things I’m doing on the site…

Profile
 
 
Posted: 27 April 2007 04:36 PM   [ Ignore ]   [ # 60 ]  
Grad Student
Rank
Total Posts:  90
Joined  01-13-2006

Mark this is wonderful! Works fine for me.
One question though: is there a way to display the hybrid and satellite view buttons inside the resultung map?

Profile
 
 
Posted: 27 April 2007 04:42 PM   [ Ignore ]   [ # 61 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  785
Joined  07-18-2006

I’d be interested in seeing your geocoding in action if you’ve got a link?  smile

Profile
 
 
Posted: 30 April 2007 09:52 PM   [ Ignore ]   [ # 62 ]  
Grad Student
Rank
Total Posts:  81
Joined  05-17-2003
Mark Huot - 15 November 2006 03:50 PM

Finally, if you don’t like my default map then you can get to the raw data as follows:

{office_location_raw}
{latitude}
, {longitude}
{
/office_location_raw}

To clarify, just append a “_raw” to the field name and then inside of that pair you can use the {latitude} and {longitude} variables to return each points location.  The pair will loop for as many locations as you have.

let me get this straight - using this will create a map with however many markers you have for every location?

if so… I have further questions.  This may be just what I’m looking for. =)

nice work.

Profile
 
 
Posted: 23 June 2007 02:36 AM   [ Ignore ]   [ # 63 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  114
Joined  11-08-2005

/* Edit */

After some time, I found my answer wink

But I still have a question, there’s any way to show all the entry in ONE map ?

Thanks Mark !!!

Best regards

Hello,

More I spend time on this forum, more I love the EE community wink

This plugin sound really great (M.Huot is one of my hero’s wink)

But since I don’t really understand English perfectly, can some one help me a little bit ?

I’ve generate a google API key, put it into the EE extension page, but right now, I don’t now what to do…

1. I guess I have to create a custom field ?
2. In the template I would like to see the google Maps, which code I’ve to use ?

Thanks you in advance ! To be honest, I’ve even have a dream last night about this !!!!

 Signature 

Simon

My first EE powered website

Profile
 
 
Posted: 04 July 2007 11:05 AM   [ Ignore ]   [ # 64 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  965
Joined  12-20-2002

I need to generate a coordinates field not from clicking on a map but from an already-existing address field using the Google Maps API’s GClientGeocoder. This is I think simpler than what you’ve already done. Any pointers gratefully received. Diving in…

 Signature 

Who ain’t a slave? - Ishmael

Profile
 
 
Posted: 04 July 2007 12:14 PM   [ Ignore ]   [ # 65 ]  
Grad Student
Rank
Total Posts:  81
Joined  05-17-2003
Adam Khan - 04 July 2007 11:05 AM

I need to generate a coordinates field not from clicking on a map but from an already-existing address field using the Google Maps API’s GClientGeocoder. This is I think simpler than what you’ve already done. Any pointers gratefully received. Diving in…

I’ll second this… this is the ideal implementation for a project I’m working on.  I need one map per entry on one of my weblogs.  I haven’t gotten too far into it yet though.

Profile
 
 
Posted: 04 July 2007 05:04 PM   [ Ignore ]   [ # 66 ]  
Grad Student
Rank
Total Posts:  81
Joined  05-17-2003

getting back to this… actually this looks really easy.  Google’s code:

<head>
    
//<![CDATA[

    
var map = null;
    var
geocoder = null;

    function
load() {
      
if (GBrowserIsCompatible()) {
        map
= new GMap2(document.getElementById("map"));
        
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        
geocoder = new GClientGeocoder();
      
}
    }

    
function showAddress(address) {
      
if (geocoder) {
        geocoder
.getLatLng(
          
address,
          function(
point) {
            
if (!point) {
              alert(address
+ " not found")
            }
else {
              map
.setCenter(point, 13)
              
var marker = new GMarker(point)
              map
.addOverlay(marker);
              
marker.openInfoWindowHtml(address);
            
}
          }
        
);
      
}
    }
    
//]]>
    
</script>
  
</head>

  <
body onload="load()" onunload="GUnload()">
    <
form action="#" onsubmit="showAddress(this.address.value); return false">
      <
p>
        <
input type="text" size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA" />
        <
input type="submit" value="Go!" />
      </
p>
      <
div id="map" style="width: 500px; height: 300px"></div>
    </
form>

  </
body>

modified body section for EE, assuming separate address, city, state, zip custom fields (exp:weblog tags excluded):

<body onload="load()" onunload="GUnload()">
    <
form action="#" onsubmit="showAddress(this.address.value); return false">
      <
p>
        <
input type="hidden" size="60" name="address" value="{streetaddress}, {city}, {state}" />
        <
input type="submit" value="Go!" />
      </
p>
      <
div id="map" style="width: 500px; height: 300px"></div>
    </
form>

  </
body>


I’ll work on implementing this later… for now, 4th of July festivities. smile

Thoughts?

Profile
 
 
Posted: 05 August 2007 05:25 AM   [ Ignore ]   [ # 67 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7117
Joined  04-15-2006

Hiya,

Sorry to drag all this up again Mark but just came across this extension and was wondering if I am doing something wrong in getting it to work?

I have installed the extension and the language file and created a new field with the geo type. I then go and publish a new entry and place the code in the page to show the map but all it does is spits out the ee code and not a map.

Does anyone know why this might be. Also does this work with EE 1.6? I am currently on 1.5.2 but just wondering when I upgrade if it will work on that as well.

Thanks.

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 06 August 2007 03:05 AM   [ Ignore ]   [ # 68 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7117
Joined  04-15-2006

Hiya,

Sorry for the bump but was just wondering if anyone had any ideas on this at all as I would really like to use something like this in an upcoming project that I am going to be undertaking.

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 06 August 2007 06:36 AM   [ Ignore ]   [ # 69 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  599
Joined  12-10-2006

WOW!!!!!!!!!!!!!!!!!!!!!!!!!!!

Wow! Wow! Wow!

This extension is awesome!! And so fun!!

@Mark Bowen - I’m using EE ver 1.6 and it works like a charm smile

Profile
 
 
Posted: 06 August 2007 10:06 AM   [ Ignore ]   [ # 70 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7117
Joined  04-15-2006

Hiya Adam,

Just wondering then if I am doing anything wrong at all then?

I can see the map with no problems when going to the publish screen and it saves the data because when I go back to edit the entry afterwards then the pin is still in the right place but if I place the tag for the field that I have set as the geo field into a template then I just get back the standard EE tag as it looks in the template as if it isn’t being parsed or something.

The field I have is called Photo Information (short name = photo_information). I am placing this into a template that is used by the entries as such :

{photo_information width="300px" height="200px"}

but all I get back is the {photo_information width=“300px” height=“200px”} code showing exactly like that on the page!! :-(

Does anyone know why this might be?

Thanks.

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 11 August 2007 03:28 AM   [ Ignore ]   [ # 71 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7117
Joined  04-15-2006

Hiya,

Sorry to keep on bumping the thread like this but was just wondering if anyone had any ideas about this at all. I have been trying and trying and trying to get this to work but it just won’t. I am almost 100% certain that I am not doing anything wrong but I will always be the first to admit to it if I have! grin

Any help with this would be greatly appreciated though.

Thanks.

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 11 August 2007 06:20 AM   [ Ignore ]   [ # 72 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1194
Joined  01-05-2006

Hi Mark.  Sorry for the slow response, I must have gotten unsubscribed from this thread, back before I realized what ‘smart emails’ were.  Anyways, I’m not sure what’s going on in your template where that tag wouldn’t get parsed.  Can you provide a little more info about the page?  Is it embedded?  Does any Google JavaScript get pushed out to the page?

thanks.
mark.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
   
4 of 8
4
 
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: 66472 Total Logged-in Users: 36
Total Topics: 84872 Total Anonymous Users: 20
Total Replies: 455384 Total Guests: 218
Total Posts: 540256    
Members ( View Memberlist )