6 of 8
6
Geocoding
Posted: 15 September 2007 09:30 AM   [ Ignore ]   [ # 91 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  152
Joined  11-22-2006

I have been using Google maps with manually entered coordinates into custom fields, but I am so exited about the possibilities with this extension.

Something I want to do is add a link to a full window on Googlemaps, I have the link code that works (opens a new window with a marker and adds the entry Title to the pop-up box):

<a href="http://maps.google.co.uk/maps?f=q&amp;hl=en&amp;geocode=&amp;q={mapref_raw}{latitude},{longitude}{/mapref_raw}({title})&amp;ie=UTF8&amp;z=12&amp;iwloc=addr&amp;om=1">

But it doesn’t work if you want to have a map displayed as well. The link works but the code to display the map just shows up in the browser as text and no map. It seems that you can’t have two calls for the same data. Any solutions?

Also any news on being able to have the map type choice saved when you Publish?

 Signature 

pfweb.co.uk

Profile
 
 
Posted: 19 September 2007 02:17 AM   [ Ignore ]   [ # 92 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  152
Joined  11-22-2006

I have noticed another issue that may be a Firefox problem as it works OK in IE7.

If you set the field to show by default to NO, then when you open the field in the publish page the map does not render properly. It doesn’t fill the box and is a bit erratic when dragging.

 Signature 

pfweb.co.uk

Profile
 
 
Posted: 19 September 2007 03:37 PM   [ Ignore ]   [ # 93 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  152
Joined  11-22-2006

I have now tried using a SAEF to publish new posts and the Google map doesn’t show at all.
Looking at the generated code there is no javascript for the map generation.
Any one else had this problem?

 Signature 

pfweb.co.uk

Profile
 
 
Posted: 26 September 2007 07:49 PM   [ Ignore ]   [ # 94 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  353
Joined  06-26-2003

Yet another lover of this extension here. I’ve poured over the thread a couple times but I’m getting hung up in one place:


I really just want to output the lat/long coordinates and what I get is a map and unparsed EE code, check it out:


http://www.iloveoldtown.org/test/businesses/type/Apparel/Grace/

Profile
 
 
Posted: 08 October 2007 12:58 AM   [ Ignore ]   [ # 95 ]  
Grad Student
Avatar
Rank
Total Posts:  99
Joined  03-08-2006

Another lurking fan who’s finally come out of the closet….

Was wondering if anyone could suggest how I could replace the default GLargeMapControl() constructor with the tidier GSmallMapControl() in the GControl object.

I’m no JS expert so I was hoping that the container div for the constructor would have a class hook that I could easily operate on via css. Unfortunately it’s a nameless element. So it seems like I have to get (someone else) dirty with the DOM to pass and replace the offender.

Any ideas on how I may approach the issue?

 Signature 

Seb Neerman

Profile
 
 
Posted: 25 October 2007 04:22 AM   [ Ignore ]   [ # 96 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  316
Joined  04-11-2006

Well done Mark and thanks indeed!!

One thing I found while using this is that for google maps in general, make sure that your CSS does not apply a background color to all images, e.g.

img {background-color: #888;}

if you do, then the map marker almost disapears, just leaving its shadow, and the controls no longer have a transparent background.

I’ve not seen this mentioned elsewhere, but have not looked really hard either - still this may save some headaches.

if your maps are held in a div with an id, say, googlemaps, then you can workaround this using the following in your CSS file:

#googlemaps img{background-color:transparent;}

 Signature 

OakenPage website works - doing simple things well

Profile
 
 
Posted: 01 November 2007 09:36 AM   [ Ignore ]   [ # 97 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1726
Joined  03-26-2006

@sneers: I just replaced that control myself. About line 568 (in the extension file, ext.geo.php), change:

$map.= 'map.addControl(new GLargeMapControl());'."\r";


to:

$map.= 'map.addControl(new GSmallMapControl());'."\r";

Then, on the next line down (this is optional…), I added this line:

$map.= 'map.addControl(new GMapTypeControl());'."\r";


and now the little controls show up in the upper right: Map/Satellite/Hybrid.

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 06 November 2007 04:38 AM   [ Ignore ]   [ # 98 ]  
Grad Student
Avatar
Rank
Total Posts:  99
Joined  03-08-2006

@mdesign

Brilliant, but how strange and coincidental. I only just found it myself literally a few minutes ago before checking the thread and your helpful reply. Seems I’m not receiving updates from this post.

Now I’ve got another head scratcher: my maps aren’t displaying. And it’s not as a result of the teeny modification to the GSmallMapControl switch. It broke prior to the tweak. On the surface everything seems to be working: the extension displays in the publish page, the {longitude}{latitude} _raw data gets displayed on the frontend. Looking at the generated source html I see that the crucial initial script with the key

src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=..."

is no longer being generated.

What could I have broken? I’ve recently modified the mod.weblog.php file to make Mark’s other wonderful Multi-Relationship ext work.

Update: I’ve just tested the mod.weblog.php file and he’s not the problem.

 Signature 

Seb Neerman

Profile
 
 
Posted: 13 November 2007 09:24 AM   [ Ignore ]   [ # 99 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  152
Joined  11-22-2006

I’ve solved the problem with wanting to reference the map twice in a page.

I wanted a hyperlink to another map service and to show the Google map.
You need to have each request within its own weblog entries tag.
“mapref” is the name of my field that stores the data.

{exp:weblog:entries weblog="{my_weblog}" limit="1}
{mapref width="
640px" height="300px"}
{/exp:weblog:entries}


For example this is the code to link to Microsoft’s Live maps:

{exp:weblog:entries weblog="{my_weblog}" limit="1}
<a href="
http://local.live.com/default.aspx?v=2&cp;={mapref_raw}{latitude}{/mapref_raw}~{mapref_raw}{longitude}{/mapref_raw}&style=h&lvl=15"> MS Live maps</a>
{/exp:weblog:entries}


You can use the _raw links several times within one weblog tag, but the standalone map link must be in a separate one.
You can see it working here.

 Signature 

pfweb.co.uk

Profile
 
 
Posted: 17 November 2007 05:02 AM   [ Ignore ]   [ # 100 ]  
Grad Student
Rank
Total Posts:  76
Joined  08-03-2002

Hello,

after experiencing some problems when using this plugin inline, I’d like to create a link to google maps or maybe use some lightbox script. I understand that in need to pass all the necessary parameters to the script or google maps window. what I was wondering whether there is a way to use this

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

but also get the zoom and maybe user api code.

maybe somebody has already done this using prototype or mootools and would share the way he/she did it.

the problem I experienced when showing the google map in the content was that the page looses the css info for a second or two.

thank you in advance for your help.

Profile
 
 
Posted: 18 November 2007 05:44 AM   [ Ignore ]   [ # 101 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6535
Joined  04-15-2006

Hi there,

I definitely don’t want to take away the thunder from Marks work here as he is fantastic at what he does but I had to go looking for another option as I just could not get this to work no matter what I did and was just wondering if anyone had ever come across Phoogle Maps before?

I have used this and it seems to work very well. It also means that if you have clients typing in the address then they don’t have to find out the Lat / Long co-ordinates first which is a great boon!

Perhaps Mark could roll this kind of API into his work here?

Best wishes,

Mark

 Signature 

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

Profile
 
 
Posted: 23 November 2007 09:19 AM   [ Ignore ]   [ # 102 ]  
Grad Student
Rank
Total Posts:  76
Joined  08-03-2002
mmjaeger - 17 November 2007 05:02 AM

Hello,

after experiencing some problems when using this plugin inline, I’d like to create a link to google maps or maybe use some lightbox script. I understand that in need to pass all the necessary parameters to the script or google maps window. what I was wondering whether there is a way to use this

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

but also get the zoom and maybe user api code.

maybe somebody has already done this using prototype or mootools and would share the way he/she did it.

the problem I experienced when showing the google map in the content was that the page looses the css info for a second or two.

thank you in advance for your help.

Edit: was just wondering whether anybody already has an idea what’s causing the CSS issues I’m experiencing.

Thanks again

Profile
 
 
Posted: 04 December 2007 04:25 PM   [ Ignore ]   [ # 103 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  03-10-2005

Mark, If you are interested i can send you a few updates i added
1: map loads Using the Google AJAX API Loader
2: added Terrain Map type
3: Mouse Wheel zoom in and out
4: Double Click zoom in and out
5: mouse over Show/Hide Map Type Control

here is an example

same changes added to the CP Map as well

IE6 seems to have issues with the map.addOverlay() function but that is API wide not just on this script

 Signature 

David Rencher
lumis.com
Image Sizer
eeFlickr
Photos

Profile
 
 
Posted: 02 January 2008 05:15 PM   [ Ignore ]   [ # 104 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1726
Joined  03-26-2006

I’m having some trouble with the default output on the template, probably because I’m outputting the map into a tab in a set of tabs. I still need to do a little testing, but I was wondering how easy it would be to get the other variables out of the extension, like this:

{office_location_raw}
{latitude}
{longitude}
{api_key}
{zoom}
{default_zoom}
{marker_lat}
{marker_long}
{
/office_location_raw}


or something like this. I feel like the code that is being output in the middle of the template (I’m somewhat of a Javascript-keep-it-outta-my-template purist) might be screwing with the tabs, so the whole map isn’t showing (I’m using jQuery). What I’m ultimately trying to do is feed the map and marker info to the jQuery googlemaps plugin to keep all the JS out of the markup.

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 06 January 2008 10:47 PM   [ Ignore ]   [ # 105 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1562
Joined  08-02-2006

Sorry if this has been covered, but I couldn’t read every post in this thread.

Here sometime soon, I’ll be needing the ability to add a custom field to a weblog which will hold an address. With this extension, can I output a Google map based upon the address in the custom field so it will flag that address on the map?

 Signature 

Deron Sizemore
==========
Random Jabber | Sizcons | NiceStylesheet | Kentucky Golfing | LogoGala
Twitter: Deron Sizemore | LogoGala

Profile
 
 
Posted: 11 January 2008 09:05 AM   [ Ignore ]   [ # 106 ]  
Grad Student
Avatar
Rank
Total Posts:  99
Joined  03-08-2006

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?

 Signature 

Seb Neerman

Profile
 
 
Posted: 21 January 2008 10:58 PM   [ Ignore ]   [ # 107 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1590
Joined  01-05-2007
deronsizemore - 06 January 2008 10:47 PM

Sorry if this has been covered, but I couldn’t read every post in this thread.

Here sometime soon, I’ll be needing the ability to add a custom field to a weblog which will hold an address. With this extension, can I output a Google map based upon the address in the custom field so it will flag that address on the map?

I get a text field on mine and it almost works but not quite. My address here centers on the ocean and not my house!

Nearly there!

 Signature 

 
Steven Hambleton | ExpressionEngine Development for Web & Graphic Design Agencies

Profile
 
 
Posted: 21 January 2008 11:00 PM   [ Ignore ]   [ # 108 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1562
Joined  08-02-2006

Hey Steven,

What do you mean that you get a text field on yours?

Thanks

 Signature 

Deron Sizemore
==========
Random Jabber | Sizcons | NiceStylesheet | Kentucky Golfing | LogoGala
Twitter: Deron Sizemore | LogoGala

Profile
 
 
   
6 of 8
6
 
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: 64878 Total Logged-in Users: 63
Total Topics: 81805 Total Anonymous Users: 41
Total Replies: 439759 Total Guests: 298
Total Posts: 521564    
Members ( View Memberlist )
Newest Members:  pticketdxrsmdanbilly8hrkiliwysso50kexpressoKlaasdarrenstylestravelerjcaton