Google Maps API v3 ***Re-Released 17/07/2014*** (Deprecated)

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.

There are already more than 250 extensions available!
User avatar
BaconFries
 
 
Posts: 3992
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 13/09/10***

Post by BaconFries » Fri Dec 03, 2010 12:32 pm

I think I may know what is wrong...are you using the streetview verion of the extension??? if so does your location allow the use of streetview?? ....Streetview is only available in certain parts of the world as of yet were "Google" have visited and taken pictures of the area so that the user can see what the area looks like other than just a map of the area...This is mentioned in the original posting....I would suggest that you try using the other version of the map Web Builder 7.1.0/Extension Builder 2.5.0 do not worry about the WB version as the extension was built using 2.5.0 extension builder and this is for WB7....

Google Maps Streetview API v3
I have added streetview to the extension please note that streetview may not be available to all users of the extension this is "Not" a fault of the extension but with "Google" so before posting that streetview does not work please check with "Google" that your location can use the streetview function

User avatar
JimmyJazz
 
 
Posts: 79
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 13/09/10***

Post by JimmyJazz » Fri Dec 03, 2010 1:52 pm

Hi Bacon,

I have tried your suggestion but I still cannot view the map, I only get a greyed out map.

However, I experimented with loading co-ordinates from the UK & the UK maps load every time.

I am in Malaysia & the map I was trying to view was for Penang. I have loaded co-ordinates for 2 other Malaysian cities & I get the same greyed out map.

When you click on my site can you see the map from your location?

http://www.spy.my/penang/queens.html

I remember your earlier version of google maps used to work for Malaysia so I am a bit puzzled by this :o

Any ideas :?:

User avatar
BaconFries
 
 
Posts: 3992
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 13/09/10***

Post by BaconFries » Fri Dec 03, 2010 3:42 pm

This is starnge because if I enter the long and lat that is in the js from the demo page you gave the map works alright for me, even if I enter other long and lats for other countries ie germany, france it seems to work as it should..... :? out of curiosity does it work in preview?? can you just try adding the map to a single page no other content and see if it works....

User avatar
JimmyJazz
 
 
Posts: 79
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 13/09/10***

Post by JimmyJazz » Fri Dec 03, 2010 4:39 pm

Hi Bacon,

No it does not work in preview either.

Although countries like the UK do work in preview.

I just created a blank page & tried again but it still does not work.

As you say this is a strange problem but I'm unsure how to get this working. :(

User avatar
BaconFries
 
 
Posts: 3992
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 13/09/10***

Post by BaconFries » Sat Dec 04, 2010 7:20 pm

As I say strange....I will try and look into what might be wrong but I will be away for a few days and may not be able to relpy as quick as I normally this is due to restrictions on using laptops so please be patient....:D


Note: Like Pablo I too will be away from the 5th to the 9th Dec...I will try to answer all questions as soon as I can...If I can due to restriction of using laptop....

User avatar
JimmyJazz
 
 
Posts: 79
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 13/09/10***

Post by JimmyJazz » Sat Dec 04, 2010 7:45 pm

Hi Bacon,

Ok,

Your input & time you have put into solving my problem is really appreciated.

However I have found that your original idea of swapping lat/long parameters did not work in streetview but since you suggested rolling back to Web Builder 7.1.0/Extension Builder 2.5.0 I did not initially swap long/lat. :oops:

Yes, yes, yes, I definitely missed that & having made the change everything loads just fine :)

However (don't you hate it when you hear that) I just loaded the co-ordinates for 9 sites within the same location, therefore the js script
overwrites whatever is in that folder & the last co-ordinates loaded displays for every site.

I now have 9 separate pages all showing the same google map location.

The obvious thing to do is change the 'map id' but if I do that the map does not load.

Is it possible to create different map id's in the same js folder?

I really appreciate the time you have put towards helping me resolve this situation 8)

User avatar
BaconFries
 
 
Posts: 3992
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 13/09/10***

Post by BaconFries » Sat Dec 04, 2010 8:32 pm

Ok a work around till I can impliment this into the extension so that you can use more than one map is this..
1. Add your first map to your page/site save the project page now browse to the folder that contains the js file it will look like this..
<script type="text/javascript" src="js/mapscript.js"></script>

Make a small change and save now open your project again add a new map to were you want again repeat what you have just done for each map so that each js has a unique name example mapscript1.js, mapscript2.js etc etc...this way you will bw able to use ans may maps you wish...When I mreturn I will add this ...
<script type="text/javascript" src="js/mapscript1.js"></script>



Note: Like Pablo I too will be away from the 5th to the 9th Dec...I will try to answer all questions as soon as I can...

User avatar
JimmyJazz
 
 
Posts: 79
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 13/09/10***

Post by JimmyJazz » Sun Dec 05, 2010 10:39 am

Hi Bacon,

you say:

"save the project page now browse to the folder that contains the js file"

Where exactly is this file?
If I save the project it is a wysiwyg file until published.
I can see the published js file, is it this you are telling me to rename? :?

User avatar
BaconFries
 
 
Posts: 3992
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 13/09/10***

Post by BaconFries » Thu Dec 09, 2010 4:12 pm

@ JimmyJazz Aploigies for not getting back to you on this....I have not been able to as I have been away fro a few days and wasnt able to use laptop due to restrictions you will finfd the js file in the folder named js if yo rename this you will be able to use another map on page of your site. I will try and add a fix to the extension so that you can do this through the extension and reupload it asap...

User avatar
JimmyJazz
 
 
Posts: 79
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 13/09/10***

Post by JimmyJazz » Thu Dec 09, 2010 4:48 pm

Hi Bacon,

I tried re-naming each js file after publishing but the same map shows for all the maps I've published.

No worries about the delay, you already explained you were going away for a few days so totally understandable.

I've just done a soft launch of my site but I have a few issues with other things that need sorting as well, google has not indexed any of the pages yet so I have a bit of breathing space.

Look forward to when you implement the change because it is perfect for my sites needs.

User avatar
BaconFries
 
 
Posts: 3992
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 13/09/10***

Post by BaconFries » Sun Dec 12, 2010 4:02 pm

You just use like the standard map, add your lat and long of location add a icon of your choice to show location when using map you will notice the small google man on map drag him to were you wish on map and streetview will show....

User avatar
BaconFries
 
 
Posts: 3992
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 13/09/10***

Post by BaconFries » Mon Dec 13, 2010 11:17 pm

@ JimmyJazz I havnt forgot about thisI am having to look and write a fix for this so that a new css and js files can be used for each map used...it just a bit of a puzzle but I am working on it ...aploigise for now ...

User avatar
JimmyJazz
 
 
Posts: 79
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 13/09/10***

Post by JimmyJazz » Tue Dec 14, 2010 9:56 am

Hi Baconfries,

Thanks for the update, it is appreciated.

I wish I was more knowledgeable & was able to assist in some way :oops:

But when you finally solve this issue this extension will be awesome :D

User avatar
JimmyJazz
 
 
Posts: 79
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 13/09/10***

Post by JimmyJazz » Mon Dec 20, 2010 7:44 am

Hi Bacon Fries,

Any updates on this fix?

Google have started indexing my site now & the first trickle of visitors are arriving.

Is there anyone in the wysiwyg community that could assist you with implementing this fix?

User avatar
BaconFries
 
 
Posts: 3992
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 13/09/10***

Post by BaconFries » Wed Dec 22, 2010 11:15 pm

Hi sorry for not getting back... been really busy with outside related issues...I have been working on it and the only way to possibly fix this is to include all the code in one page instead of having external files as it is now...the downside of this is it wont validate with W3C :( that is why I bulit the extension as it is. Till I can right a better solution so that you can use more than one map you may have to revert to the old extension :( again I have to be away over the next couple of days but will be able to use laptop so will try se what can be done even if I have to just write the extension as I mentioned above ...

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests