PDA

View Full Version : google map selector



racerxfactor
04-15-2013, 11:21 PM
1) Script Title: google map selector

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/googlemapselector.htm

3) Describe problem: having a problem changing map links, when i add a link via google maps link, the functionality breaks for the script. for example, i try to change the first link from

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Eiffel+Tower,+Champ+de+Mars,+Paris,+France&sll=43.667872,-79.378796&sspn=0.041349,0.111494&ie=UTF8&hq=Tour+Eiffel&hnear=Tour+Eiffel,+Parc+du+Champ+de+Mars,+75007+Paris,+Ile-de-France,+France&ll=48.858842,2.294362&spn=0.004701,0.013937&z=17&iwloc=A

to

https://maps.google.com/maps?q=Los+Angles+Multifamily+%26+Income+Property,+West+Sunset+Boulevard,+Los+Angeles,+CA&hl=en&sll=34.088401,-118.201538&sspn=0.241112,0.2314&oq=los+angle&t=v&hq=Los+Angles+Multifamily+%26+Income+Property,&hnear=W+Sunset+Blvd,+Los+Angeles,+California&z=13

the whole thing breaks, map is not loading in the page and the rest of the links are busted as well.

Beverleyh
04-16-2013, 05:11 AM
The demo appears to work fine so maybe there is something on your actual page that is conflicting/causing issues.

Please post a link to your page so we can see the problem first hand.

racerxfactor
04-16-2013, 05:39 AM
i considered that the site that i'm working on, has different relative paths i.e. js/googlemapselector.js and css/googlemapselector.css but i've recreated the problem here:

http://racerxfactor.com/map/

i just tried changing the first link from france to los angeles and thus recreated the issue i'm having

and here's the page as default

http://racerxfactor.com/map/index_working.html

Beverleyh
04-16-2013, 07:39 AM
I tested it here and it seems that if your linked map uses Google's secure https:// URL, the script will do the redirect thing.

Remove the 's' from the URL (http://) and everything works fine.

I just submitted a bug report so hopefully it can be addressed/documented by ddadmin.