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
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
  • Home
  • Forums

SL Google Map Field Type : Google Maps in your CP, SAEFs, and EE templates : Now with map types in the CP

Development and Programming

Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis

Djive,

I wish i could use standard SAEF but it’s not an option.

I understand it may not be an option, but my question is whether the extension works with a standard SAEF? If it does, the problem is either with FoxEE itself, or with the compatibility between this addon and FoxEE.

That would at least give me some idea where to start looking.

Stephen

       
Djive's avatar
Djive
97 posts
15 years ago
Djive's avatar Djive

Hi,

i tried it with standard SAEF and it’s the same.

Thanks

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis

Djive,

I can’t reproduce this problem. I created a quick SAEF (attached), which worked as expected.

Please let me know whether this works for you.

Stephen

       
Djive's avatar
Djive
97 posts
15 years ago
Djive's avatar Djive

Hi Stephen,

it seems that the problem is in FoxEE Classifieds addon extension, when i disable it SAEF looks ok.

Thank you

       
AJP's avatar
AJP
311 posts
15 years ago
AJP's avatar AJP

Hey Stephen. I remember a while ago some talk about MSM support. Now I’m running into the issue of one API key for multiple domains. I think earlier versions had separate API keys for each MSM site, and you asked about moving to one API key.

Now it’s biting me. Any ways you know of enabling multiple keys? Can I put a new key in the path.php file?

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis

Hi AJ,

Any ways you know of enabling multiple keys? Can I put a new key in the path.php file?

All FieldFrame / Fieldtype settings are system-wide, so adding path.php support may be the only way to do this.

I’ll do some digging and get back to you.

Cheers, Stephen

       
sirinalot's avatar
sirinalot
23 posts
15 years ago
sirinalot's avatar sirinalot

Hi Stephen,

I seem to be having trouble with the maps on a website I’m working on for a client. I’ve inserted an extra custom field into the SAEF they currently use to post new entries. If I’m posting a new entry it and I input the location I want the map to show it works fine; however because my client already has 100+ entries that were made before I installed the maps module, when you visit these pages it displays this at the top of the page:

Notice: Uninitialized string offset: 0 in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 579

Notice: Undefined index: pin_lng in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 580

Notice: Undefined index: map_zoom in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 596

Notice: Undefined index: pin_lat in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 597

Notice: Undefined index: pin_lng in /home/username/domain/admin/extensions/fieldtypes/sl_google_map/ft.sl_google_map.php on line 598

Now I tried editing the ‘ft.sl_google_map.php’ file and removing the section where it enters a default location but I’m still getting this error at the top of the page on the front end of my website.

I also tried setting up an if function to say if the location is empty then display nothing. Again, the if function works as it takes away the map and replaces it with nothing however I’m still getting these errors at the top of my page.

Danny

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis

Hi Danny,

What version of SL Google Map are you using?

Stephen

       
sirinalot's avatar
sirinalot
23 posts
15 years ago
sirinalot's avatar sirinalot
Hi Danny, What version of SL Google Map are you using? Stephen

The latest one, sl-google-map-1.1.2

       
sirinalot's avatar
sirinalot
23 posts
15 years ago
sirinalot's avatar sirinalot

Any ideas on this issue Stephen?

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis
Any ideas on this issue Stephen?

I’ll need some time to look into it Danny.

Stephen

       
sirinalot's avatar
sirinalot
23 posts
15 years ago
sirinalot's avatar sirinalot

Thats cool I wasn’t sure if it was a common issue, other than that the module works a charm!

       
sirinalot's avatar
sirinalot
23 posts
15 years ago
sirinalot's avatar sirinalot
Any ideas on this issue Stephen?
I’ll need some time to look into it Danny. Stephen

Have you had time to take a look at the issue yet? I don’t mean to rush you or anything just wanted to know if anything had been done.

Thanks

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
15 years ago
Stephen Lewis's avatar Stephen Lewis

Hi Danny,

Have you had time to take a look at the issue yet? I don’t mean to rush you or anything just wanted to know if anything had been done.

Sorry about the delay in responding. New Year, and too much work have got in the way, and I’m yet to look at this.

I’ll have a quick look at the code, and if it’s obvious where the problem lies I’ll release an update (and let you know). If the solution requires a bit more work, it’ll be at least a week I’m afraid, as I’ve got a couple of launches coming up.

Once again, sorry for the delay; I’m very pushed for time at the moment, and unfortunately paid work needs to take priority.

Cheers, Stephen

       
aegisdesign's avatar
aegisdesign
12 posts
15 years ago
aegisdesign's avatar aegisdesign
I also tried setting up an if function to say if the location is empty then display nothing. Again, the if function works as it takes away the map and replaces it with nothing however I’m still getting these errors at the top of my page.

Just a ‘me too’. I’m getting the same errors if an entry has no data yet. I added the google map field after we’d already had 30+ entries without any data.

I added a check in display_tag() to check the array is passed in and if not reset it to blanks

if ( ! is_array($field_data) OR count($field_data) !== 5)
        {
          $field_data = array(
            'map_lat' => '',
            'map_lng' => '',
            'map_zoom' => '',
            'pin_lat' => '',
            'pin_lng' => ''
            );
        }

Stick that near the top, say after where $fallback is set.

That’s a bit of a hack as I suspect display_tag() shouldn’t be called at all if the data is empty.

       
First 13 14 15 16 17

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.