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 is a dedicated section for commercial extensions.
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

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

Post by JimmyJazz »

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: 5328
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries »

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: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

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

Post by JimmyJazz »

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: 5328
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries »

@ 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: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

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

Post by JimmyJazz »

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: 5328
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries »

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: 5328
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries »

@ 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: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

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

Post by JimmyJazz »

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: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

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

Post by JimmyJazz »

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: 5328
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries »

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 ...
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries »

This is not possible with the extension, it can only show a set location by entering a latitude and a longitude and on click of a icon/push-pin it will display some information such a address, email etc...what you are requireing is a custom script to do what you need...From the url you provide I can see that you can copy a script that you can insert into WB using the HTML object..
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

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

Post by JimmyJazz »

Hi baconfries,

Hope you had a happy christmas & new year.

Are you any closer to updating the extension yet?
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

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

Post by BaconFries »

The same to you.. I had a major PC crash of Xmas and the New Year..please read this url
viewtopic.php?f=42&t=35934
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

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

Post by JimmyJazz »

Hi Baconfries,

Ouch!!!

Your work that pays the bills has to take priority.
I hope you can recover all your data.

I'll monitor this thread until you get back on track & can update this extension.

Hope everything works out ok.
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 26/00/1***

Post by BaconFries »

***Update 26/01/11***
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 26/01/01***

Post by JimmyJazz »

Hi Bacon fries,

Thanks for the update,

Has this now rectified the problem of having multiple maps on separate pages located in the same folder?

It maybe a day or so until I can implement this update on my website. I will give you feedback once I have tried.
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 26/01/01***

Post by BaconFries »

Yes...I have made it that the map uses a iframe to be placed on each page needed, and that you can now name each map like so mylocation.html, location.html, map1.html, map20.html etc etc doing it this way allowed the extension to generate seperate maps as long as each has its own name...let me know how you get on...
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 26/01/01***

Post by JimmyJazz »

Hi BaconFries,

Just tested your update on 2 pages using 'preview in browser' & the good news is both loaded the correct maps :D

However, the new map expanded the page both horizontally & vertically & placed the map in the bottom right hand corner of the page, I had to scroll across & down to find it!! (could this be because of the iframe????)

I think you are going in the right direction now but it just needs a bit of further tweaking to keep the map where I place it in wysiwyg without expanding the page.

I am trying to create individual maps at a size of 400x300, the majority of these maps will be located on the right hand side of the page directly below the 4 animated gifs (unsure if this info is helpful, but....?)

An example page awaiting for map co-ordinates:

http://www.spy.my/penang/eidelweiss-cafe.html

Again, thanks for efforts to make this work, it will be an awesome extension once perfected.
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 29/01/01***

Post by JimmyJazz »

Hi Baconfries,

Are you close to rectifying the page expansion problem with the new update?
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 29/01/01***

Post by BaconFries »

Update has been available since 29/01/01 after you posted "Fri Jan 28, 2011 8:06 pm"
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 29/01/01***

Post by JimmyJazz »

Hi Baconfries,

I tried the update & it just expanded the webpage horizontally & vertically.

Are you suggesting I use an iframe on the page that links to another separate page?

I've just read up on iframes & it seems they are used to linking to another page whereas I need the map on each individual review page.

I just tried to install the iframe on the page & place the google map inside it but it did not display.

edit...........

Just looking at iframes............if I place an iframe on the page where do I place the map? Do I have to create a separate page for it?

I've never used iframes before & do not really understand how I am supposed to implement this.

Sorry for my lack of knowledge :oops:
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 29/01/01***

Post by BaconFries »

Ok it is as easy as A, B, C simply add the extension to the page/postion that you want, open the extension properties set to what your require..Latitude, Longitude, Map HTMl etc etc, and since the extension is using a iframe it will call the map into the page you need it on, now when your ready to upload to your server you will have two html files one is the page that you have inserted the extension on this may be index.html and you will also have another html file this will be called (example) googlemap.html, or jimmyjazz1.html or what ever you gave it in Map HTML properties. Just to check that it was working I downloaded the page that you gave the url too, rebuilt it in WB added the extension and it working as it should I have also saved this as a WB project (wbs) and have uploaded for you to try out...I have also include the latest version of the extension....

http://www.mediafire.com/?v7u264ww67f3vhb
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 29/01/01***

Post by JimmyJazz »

Hi BaconFries,

Fantastic mate, you've nailed it!

Just loaded every map onto the live site & checked each one & they are all displaying their exact co-ordinates :D

There is one small issue though, when I click on any of the map icons I get this line above the address:

$heading$

I'm sure this is something I have overlooked but I cannot work out what, check it out on the map on the following link:

http://www.spy.my/penang/cheong-fatt-tze-mansion.html

I really appreciate the time you have put into implementing this alteration, but this is now a fantastic extension for anyone that wants to install many different maps on their website.

You've just helped me take one step closer to officially launching this site, but I still got some work to do (not related to maps). When ready I will announce it in the appropriate new site category on this forum & give you a special mention.

Cheers :)
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 29/01/01***

Post by BaconFries »

Opps nope that you have done....it done to me I added the wrong HTML file into the extension I will fix this later and repost
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 09/02/01***

Post by JimmyJazz »

Hi BaconFries,

Have you fixed this small problem yet?

tia......
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 09/02/11***

Post by BaconFries »

Yes it has been update since your last post on 29/01/11.. most recent update 09/02/11
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 09/02/01***

Post by JimmyJazz »

Hi BaconFries,

Thanks for that, I just updated all my maps :D
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 09/02/01***

Post by JimmyJazz »

Hi BaconFries,

I only loaded the maps today & already in Google webmasters tools they are giving a HTML suggestion about the googlemap pages.

They are saying they are missing Title Tags.

Is the best solution just to exclude these in the robots file?

note:......This is the map only page, not the actual page with all info, images & where the map actually appears.
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 09/02/01***

Post by BaconFries »

I will see what I can do about adding <title></title> and maybe some meta tags into the html..
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 09/02/01***

Post by JimmyJazz »

Ok, sounds good.

As a temporary measure I have just excluded them in the robots file.
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 09/02/01***

Post by BaconFries »

This is done through the Google Map Properties see image below
maphw.gif
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 09/03/11***

Post by BaconFries »

***Updated 09/03/11***
Update to allow title and mrta tags to be added to the google map html also fixed
<div id="map_canvas"></div> height, width...
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 09/03/11***

Post by JimmyJazz »

Hi Baconfries,

Updated all my maps with no problems, everything got titles & meta now.

Your work is appreciated :D
User avatar
Islander
 
 
Posts: 54
Joined: Tue Jan 12, 2010 4:03 pm
Location: Mauritius
Contact:

Re: Google Maps API v3 marker displacement!

Post by Islander »

Hi BaconFries,

I'm having a displacement of the marker from the right coordinates while zooming out. Here's an example at http://www.mauritius360.com/test/googlemap.html
On full zoom in the marker placement is right on a place in the Bay. On zooming out you can see the marker drifting out of the island.
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 09/03/11***

Post by BaconFries »

I will be looking at the code later today and see what can be done to fix this along with anything else that me wrong.....
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 15/03/11***

Post by BaconFries »

*** Updated 15/03/11***
User avatar
Islander
 
 
Posts: 54
Joined: Tue Jan 12, 2010 4:03 pm
Location: Mauritius
Contact:

Re: Google Maps API v3 ***Update 15/03/11***

Post by Islander »

Hi BaconFries,

It's working correctly now. Many thanks for resolving this issue so fast.

By the way, is it possible to insert a hyperlink or image in the dialog box?
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 15/03/11***

Post by BaconFries »

Yes you can... see reference below...I have noticed that using a image adds a scroll bar to the info window I will see what can be done to overcome this...
URL
<a href="http://www.yoursiteaddress.com/" target="_blank" style="text-decoration:none">showme</a><br/>
Email
<a href="mailto:enquiries@youremailaddress.com" style="text-decoration: none">email</a>
Image
<a href="http://www.yoursiteaddress.com/images/y ... .gif"><img src="http://www.yoursiteaddress.com/images/yourimage.gif" border="0"></a></br>
User avatar
Islander
 
 
Posts: 54
Joined: Tue Jan 12, 2010 4:03 pm
Location: Mauritius
Contact:

Re: Google Maps API v3 ***Update 15/03/11***

Post by Islander »

Hi BaconFries,

You do a great job!
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 15/03/11***

Post by BaconFries »

For example JOES BURGERS will work; JOE'S BURGERS will not.
Try this
JOE&rsquo;S BURGERS
smartmedia
 
 
Posts: 66
Joined: Wed Jan 26, 2011 7:51 pm
Location: Hellas

Re: Google Maps API v3 ***Update 15/03/11***

Post by smartmedia »

Hi..

Any idea how to find the right longitude and latitude for a place..?? I download and install Google earth, i got some test long, lat, i put it but didn't worked. Do i need to transform those into special form...???
infogate
<script type="text/javascript">jQuery.noConflict();</script>
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 15/03/11***

Post by BaconFries »

Yer try this site from fellow member neo_webbuilder just enter the full address needed example 101, yourstreet/road, yourtown, yourcountry, yourzip/postcode
http://www.backups.nl/geocoder.html
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 15/03/11***

Post by BaconFries »

No the API key is no longer required
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 15/03/11***

Post by BaconFries »

I will try and take a look over the next couple of days and see what can be wrong
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 15/03/11***

Post by JimmyJazz »

BaconFries wrote:
For example JOES BURGERS will work; JOE'S BURGERS will not.
Try this
JOE&rsquo;S BURGERS

I just spent 4 hours trying to get a new map working & then I come to here & find the answer right in front of me.

Thanks to BaconFries for keeping on top of this fantastic extension :D
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 15/03/11***

Post by BaconFries »

Thanks Jimmy always nice to read compliments form a user of the extension...note I have made a couple of changes to the extension and will be releasing soon...it not a requirement to update to the newer only if you need to show the placement of tye navigation buttons in the map I am still testing and need to update the pdf before I ca release once again thanks for the compliments... :D
User avatar
JimmyJazz
 
 
Posts: 72
Joined: Mon Jun 28, 2010 6:11 pm
Location: Penang, Malaysia
Contact:

Re: Google Maps API v3 ***Update 15/03/11***

Post by JimmyJazz »

Hi BaconFries,

ok, noted.
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 24/04/11***

Post by BaconFries »

***Updated 24/04/11***
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 24/04/11***

Post by BaconFries »

Can you say what is happening? as I have just checked and if I set the streetview to false then the icon doesnt get displayed this is how it is ment to work, and if it is set to true then it will display see images below
true.gif
false.gif
topc.gif
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Google Maps API v3 ***Update 24/04/11***

Post by BaconFries »

Hi when I first rebuilt this version of the map API V3 it did have a offset in the code, but I had to remove it because it was causing the map icon to be put out of place and not showing the said latittude/longitude position of the location that the user inserted into the extension variables. I will check if I still have a copy of that on Mediafire or backed up and a pendrive If either is the case I will post it temporarily for you to try it out and se it it is what you need...
Locked