We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
1
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
1
  • Home
  • Forums

Geocoding

Development and Programming

Deron Sizemore's avatar
Deron Sizemore
1,033 posts
17 years ago
Deron Sizemore's avatar Deron Sizemore

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?

       
Pigtail Dencil's avatar
Pigtail Dencil
117 posts
17 years ago
Pigtail Dencil's avatar Pigtail Dencil

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?

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo
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!

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
17 years ago
Deron Sizemore's avatar Deron Sizemore

Hey Steven,

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

Thanks

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo
Hey Steven, What do you mean that you get a text field on yours? Thanks

See attached image of my CP…

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
17 years ago
Deron Sizemore's avatar Deron Sizemore

Ah, ok. Maybe I’m confused altogether then on what this add-on does. I was thinking this was something I could use in full entry template and it would output a map based on an address which was located in a custom field. I wasn’t aware this put a map inside the publish page…

Or does it do both?

Thanks

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

I think the idea is that you stick a pin in the location. The map helps you do that.

It also outputs a map on the template too based on the location you selected for that entry.

What I want is something that can return a map based on some custom address field contents.

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
17 years ago
Deron Sizemore's avatar Deron Sizemore
I think the idea is that you stick a pin in the location. The map helps you do that. It also outputs a map on the template too based on the location you selected for that entry.

Got ya

What I want is something that can return a map based on some custom address field contents.

Yes, this is what I’m after too! 😊 This is what I was hoping the geocoding add-on did.

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

I am working on something and if it works I’ll post it here 😊

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
17 years ago
Deron Sizemore's avatar Deron Sizemore

Awesome! I’d appreciate that. 😊

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

No problems!

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

Just a quick question on map extensions. There are two out, this one and Livelook. They are both a tad problematical yet.

I did a template where it takes the address value from a custom field in the entry, and gets the lat/lng from google as a php variable, then using that it updates the lat/lng custom fields in the database.

Added a link to the top of the control panel “geocode”. When doing a page for a map, the client writes the article as usual, adds the address in the address field and saves the entry. Then click on geocode which opens that template and it does the magic and says, “All done, database updated for “entryname”, and the lat/lng fields are filled in automatically.

I thought an extension may/would be better, just wonder if there are too many inherent problems…this way one has the address and coordinates in db and custom fields and can do whatever wanted.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.
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.

I agree - I need this as well. I really need to get the zoom out of the custom field. Is there a quick addition I can make to the file so that I can simply return the {zoom} in addition to {latitude} and {longitude}? The API code would be a bonus, but I think the zoom is essential for what I’m trying to do.

Having a {sarcasm}wonderful time{/sarcasm} trying to get a google map to work in a Thickbox iframe - or any other initially hidden window/div/element. It’s darn near impossible, but I’ve seen a couple working examples and I don’t think I can make it happen with the default code this extension spits out - so I need to go raw. Thanks.

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

What is the problem with getting Google Maps working in a Thickbox?

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

Have you ever tried getting a google map to show correctly in an element that is initially hidden (whether div, thickbox, hidden tab, whatever) or initially has no ‘size’? If not, I hope you have plenty of hair, because you’re going to pull out a lot of it. Basically the map won’t recenter correctly so much or all of it will be gray, and points won’t be drawn…I’m running into all of it.

Working on a real estate site and we wanted the map initially hidden. First in a tab, then I tried a simple slideToggle (I’m using jquery) and now I’m trying Thickbox iframe becaues I found one working example out there I thought I could mimic, but the way the Geocoding outputs the code isn’t helping me mimic what works at this point.

By the way, if you have tried this, and gotten it to work, I would love to hear how.

(If this conversation continues, we should probably go to PM or a new thread, unless it involves getting the zoom out of the _raw tags)

(Attached is a sample pic from FF/Mac)

UPDATE: Looks like I had to use an older version of Thickbox (2.0) to get it working. I was using the latest (3.1).

       
First 6 7 8 9 10 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.