Issue with custom component.... Need some guidance....

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Apr 01, 2013 2:49 pm
Reply with quote
Report this post
Hello all,

I am developing a custom component for the municipality that I work for. This component will allow municipalities or utility companies to basically keep detailed information about the utility asset, such as type, location, notes, maintenance information etc. One of the major features of this component is the ability to store lat/long information via google maps. The issue I am having is that I can get the google map implementation to work just fine on the admin side of the component, BUT when I access the component on the public side and edit an entry, the google map is greyed out. I've installed a jquery no-conflict plugin and it did not help. Im pretty sure that there is a conflict somewhere between the template and the component some where, I just cannot figure out where. I've included a couple screen shots for reference.

Thanks again in advance for your help and guidance.

google_maps_working.png


google_maps_issue.png
User avatar
Junior Boarder

teitbite
Mon Apr 01, 2013 3:34 pm
Reply with quote
Report this post
Hi

For start please check if the same is happening when a default template is selected. If not, than show me Your site so I'll see.
User avatar
Moderator

GK User
Mon Apr 01, 2013 10:14 pm
Reply with quote
Report this post
teitbite wrote:Hi

For start please check if the same is happening when a default template is selected. If not, than show me Your site so I'll see.


Hello,

Thank you for your reply. I have checked against the default theme, and it works as it should. I am developing this component on a local server, so I will have to migrate it over to an external server so that you can take a look at it. Give me a day or so that I can get that accomplished. I will post back when I have that setup and ready to go.

Thanks again for your help,

Tim
User avatar
Junior Boarder

teitbite
Tue Apr 02, 2013 6:07 pm
Reply with quote
Report this post
Hi

Ok. I'll be waiting.
User avatar
Moderator

GK User
Wed Apr 03, 2013 8:43 pm
Reply with quote
Report this post
Hello,

I am sending you the login information as a pm to you.
User avatar
Junior Boarder

teitbite
Wed Apr 03, 2013 9:16 pm
Reply with quote
Report this post
Hi

I can see that You have at least 3 different version of jQuery loaded for edit page. It may not be the problem causing it, but it can se it will be good to eliminate it. Please try install easyjquery plugin and make it to use just one jquery version.
User avatar
Moderator

GK User
Thu Apr 04, 2013 4:40 pm
Reply with quote
Report this post
teitbite wrote:Hi

I can see that You have at least 3 different version of jQuery loaded for edit page. It may not be the problem causing it, but it can se it will be good to eliminate it. Please try install easyjquery plugin and make it to use just one jquery version.


Hello,

I've uninstalled the other two plugins that were not being used, plus eliminated the jquery call within the script itself. There should be only one call for jquery now.
User avatar
Junior Boarder

teitbite
Sat Apr 06, 2013 1:17 am
Reply with quote
Report this post
Hi

Ok it was not javascript conflict, but a responsive css :)

Please add this to css and everything should be fine:

Code: Select all
section #map img {
    width: auto !important;
}
User avatar
Moderator

GK User
Sat Apr 06, 2013 4:11 pm
Reply with quote
Report this post
Hello!

Sorry to ask, but which css file do I need to modify? I've added that bit of css to the style css files and the override css file for the template, but it hasn't made any difference. As always, thank you for your help.

Tim
User avatar
Junior Boarder

teitbite
Sun Apr 07, 2013 12:47 am
Reply with quote
Report this post
Hi

Override.css is the correct one. Sorry I've missed one more attribute affecting that. Try this code:

Code: Select all
section #map img {
    max-width: none !important;
    width: auto !important;
}
User avatar
Moderator

GK User
Mon Apr 08, 2013 1:00 pm
Reply with quote
Report this post
Perfect!! Works like a champ!

Thank you so much for your help!

Best wishes!

Tim
User avatar
Junior Boarder


cron