close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Will not show Google Maps

Thread began 3/21/2012 10:17 am by CUAD | Last modified 3/27/2012 11:53 am by Jason Byrnes | 2546 views | 14 replies |

CUAD

Will not show Google Maps

I have a page where the user can click on the map they want to view. When they click the text shows up but the map does not.

Here is the page that I have this on.
onRoad.php

Link that shows when Map should show.
onRoad.php?page=fargo

One of the map pages I want to show is here.
fargo.php

I am using $_GET["page"] for the trigger value.

Let me know if you need anymore information to help resolve this issue.

Sign in to reply to this post

Jason ByrnesWebAssist

crate the map page as a static html page so that the map will be included as a script rather than a php include.

Sign in to reply to this post

CUAD

So I created a page called fargo.html and it is still not showing the map.

Map page: fargo.html

Page shown on: onRoad.php?page=fargo

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the fargo.html and onRoad.php pages please.

Sign in to reply to this post

CUAD

onroad page

<?php require_once('webassist/framework/framework.php'); ?>
<?php require_once('webassist/framework/library.php'); ?>
<?php
if(true){
// WebAssist Framework Builder Dynamic Plug-in: $WA_fargo_1332340219194
switch(isset($_GET["page"])?$_GET["page"]:""){
case "fargo":
$WA_fargo_1332340219194 = new WA_Include("maps/fargo.html");
break;
case "dl":
$WA_fargo_1332340219194 = new WA_Include("maps/dl.html");
break;
default:
break;
}
if(isset($WA_fargo_1332340219194)){
require($WA_fargo_1332340219194->BaseName);
$WA_fargo_1332340219194->Initialize(true);
}
// End: WebAssist Framework Builder Dynamic Plug-in: $WA_fargo_1332340219194
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<link rel="shortcut icon" href="elements/layout/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>We've been waiting for you!</title>
<link href="CSS/layout.css" rel="stylesheet" type="text/css" />
<link href="CSS/text.css" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="menu_ie" -->
<!--[if lte IE 6]>
<style type="text/css" media="all">
@import url("CSSMenuWriter/cssmw/menu_ie.css");
</style>

<style type="text/css" media="all">
@import url("../CSSMenuWriter/cssmw/menu_ie.css");
</style>

<style type="text/css" media="all">
img, div, ul, li, span, a {
behavior: url("../CSSMenuWriter/cssmw_images/iepngfix.htc");
}
</style>

<![endif]-->
<!-- InstanceEndEditable -->

</head>

<body>
<!-- begin the head banner for the website. -->
<div id="header">
<!-- begin header logo. --> <div id="headerLogo"><a href="index.php"><img src="elements/layout/header/bannerHeader.png" alt="We've been waiting for you! - Creating Awareness about the benefits of Credit Unions" width="545" height="75" border="0" /></a></div><!-- end of header logo -->
</div><!-- end of header. -->
<!-- begin the menu container. --><!-- InstanceBeginEditable name="menu" -->
<div id="menuOnTheRoad">
<!-- begin of buttons. -->
<div style="float:left; width:auto; height:30px; margin: 5px 0px 0px 25px;"><a href="index.php"><img src="elements/layout/menu/buttons/homeUp.png" alt="Home Page" width="101" height="30" border="0" /></a></div>
<div style="float:left; width:auto; height:30px; margin: 5px 0px 0px 0px;"><a href="cu.php"><img src="elements/layout/menu/buttons/whatsACreditUnion.png" alt="What's a credit union? " width="250" height="30" border="0" /></a></div>
<div style="float:left; width:auto; height:30px; margin: 5px 0px 0px 0px;"><a href="find.php"><img src="elements/layout/menu/buttons/findACU.png" alt="Find a Credit Union" width="192" height="31" border="0" /></a></div>
<div style="float:left; width:auto; height:30px; margin: 5px 0px 0px 0px;"><a href="onRoad.php"><img src="elements/layout/menu/buttons/cuOntheRoad.png" alt="CU on the Road" width="159" height="31" border="0" /></a></div>
<div style="float:left; width:auto; height:30px; margin: 5px 0px 0px 0px;"><a href="testimonial.php"><img src="elements/layout/menu/buttons/testimonials.png" alt="CU on the Road" width="135" height="31" border="0" /></a></div>
<div style="float:left; width:auto; height:30px; margin: 5px 0px 0px 0px;"><img src="elements/layout/menu/buttons/contactUs.png" width="125" height="31" alt="CU on the Road" /></div>
<!-- end of buttons. -->
</div>
<!-- InstanceEndEditable --><!-- end of the menu container. -->
<!-- start of content area? --><!-- InstanceBeginEditable name="Main Content Area - " -->

<!-- cu on the road container. -->
<div id="cuOnTheRoad">
<div id="contentLeftOnTheRoad">
<img src="elements/layout/onTheRoad/banner.png" width="683" height="435" alt="CU on the road" />

<div class="OnTheRoadText" style="background-image:url(elements/layout/onTheRoad/content1Background.png); background-repeat:no-repeat; width:570px; height:38px; margin:auto; padding:15px;">We're on a road trip to your neighborhood! Talk to our traveling experts about the benefits of Credit Unions, and we'll help conect you to your local Credit Union. </div>
<div align="center" style="height:auto; width:400px; margin:auto; padding:10px; text-align:center;"><?php echo((isset($WA_fargo_1332340219194))?$WA_fargo_1332340219194->Body:"") ?></div>
<div style="background-image:url(elements/layout/onTheRoad/content2Background.png); background-repeat:no-repeat; width:570px; height:200px; margin:auto; padding:15px;"><span class="upcomingCitiesHeader">Tour Schedule
</span>
<table width="582" border="0" cellpadding="10">
<tr>
<td width="258" class="upcomingCitiesText">April 17 Fargo, ND</td>
<td width="278" align="center" class="upcomingCitiesText"><a href="onRoad.php?page=fargo">See Map</a></td>
</tr>
<tr>
<td class="upcomingCitiesText">April 18, Grand Forks</td>
<td align="center" class="upcomingCitiesText">See Map</td>
</tr>
<tr>
<td class="upcomingCitiesText">May 8 Devils Lake, ND</td>
<td align="center" class="upcomingCitiesText">See Map</td>
</tr>
<tr>
<td class="upcomingCitiesText">May 22, Jamestown, ND</td>
<td align="center" class="upcomingCitiesText">See Map</td>
</tr>
</table>
</div>
</div>
<!-- begining of right side bar in main content area. -->
<div id="contentRightOnTheRoad">
<!-- start of the twitter container. -->
<div class="upcomingCitiesHeader" style="width:225px; height:280px; margin:130px auto 30px 20px;">Latest Tweets<br />
<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 30000,
width: 225,
height: 240,
theme: {
shell: {
background: '#495256',
color: '#ffffff'
},
tweets: {
background: '#495256',
color: '#ffffff',
links: '#4aed05'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
behavior: 'all'
}
}).render().setUser('CUontheRoadDAK').start();
</script>
</div>
<!-- end of the Twitter Container. -->
<!--begining of Facebook Area. -->
<div class="upcomingCitiesHeader" style="width:225px; height:280px; margin: 75px auto 5px 20px;">
CU on Facebook<br />
<!-- Facebook Badge START --><a href="https://www.facebook.com/WeveBeenWaitingForYou" target="_TOP" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="We&#039;ve Been Waiting for You">We&#039;ve Been Waiting for You</a><br/><a href="https://www.facebook.com/WeveBeenWaitingForYou" target="_TOP" title="We&#039;ve Been Waiting for You"><img src="https://badge.facebook.com/badge/244253445664974.1427.1863788141.png" style="border: 0px;" /></a><br/><a href="http://www.facebook.com/business/dashboard/" target="_TOP" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="Make your own badge!">Promote Your Page Too</a><!-- Facebook Badge END -->
</div>
<!-- end of Facebook area. -->
<div style="width:150px; height:50px; margin:185px auto 0px 20px; "><a href="http://www.facebook.com/WeveBeenWaitingForYou"><img src="elements/layout/home/followUs/facebook.png" alt="Follow Us on Facebook!" width="41" height="40" hspace="5" border="0" /></a><a href="https://twitter.com/#!/CUontheRoadDAK"><img src="elements/layout/home/followUs/twitter.png" alt="Follow Us on Twitter" width="41" height="40" hspace="10" border="0" /></a></div>
</div> <!-- content right bar end -->
</div>
<!-- cu on the road container end. -->


<!-- InstanceEndEditable --><!-- end of content area. -->
<div id="footer">
<div style="padding:20px 0px 5px 50px; font-size:10px; width:775px; float:left;">&#169; 2012 Credit Union Association of the Dakotas</div>
<div style="padding:5px 0px 0px 0px;"> <a href="http://www.cuad.coop" ONCLICK="VSLT('CUAD Site - Footer Link')" TARGET="new"><img src="elements/CUADFooterLogo.png" alt="Credit Union Association of the Dakotas" width="128" height="35" border="0" /></a></div>
</div>
<!--VISISTAT SNIPPET//-->
<script type="text/javascript">
//<![CDATA[
var DID=176922;
var pcheck=(window.location.protocol == "https:") ? "https://sniff.visistat.com/live.js":"http://sniff.visistat.com/live.js";
document.writeln('<scr'+'ipt src="'+pcheck+'" type="text\/javascript"><\/scr'+'ipt>');
//]]>
</script>
<!--VISISTAT SNIPPET//-->

</body>
<!-- InstanceEnd --></html>

Sign in to reply to this post

CUAD

fargo page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Were waiting for you! - Babb's Coffee House</title>
<script type="text/javascript" src="google_javascript/wagmp_map_3.js">/*wagmp*/</script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&key=AIzaSyBlWzrRBr5NxYrxri29r6qlYuNsKPtLaN0">/*wagmp*/</script>
</head>

<body><div id="wagmp_map_3" style="width: 350px; height: 350px;">asdfasdfasdfasdf</div>
<script type="text/javascript" src="google_javascript/wagmp_maps.js">/*wagmp*/ asdfasdfasdfasdf</script>
</body>
</html>

Sign in to reply to this post

Jason ByrnesWebAssist

the following line is missing from the onRoad page, it should be just before the end of the menu_ie editable region in the head;

php:
<?php echo((isset($WA_fargo_1332340219194))?$WA_fargo_13 32340219194->Head:""?>
Sign in to reply to this post

CUAD

Ok the map shows now. But for some reason the flag does not? Also, is there any reason why that chunk may have not been added when running through the editor? Is there something I can change to correct it?

Sign in to reply to this post

Jason ByrnesWebAssist

the marker not showing is a bug that i have logged in our bugbase, to work around the issue:

in the maps/google_javascript/wagmp_map_4.js fle

change:

image: new google.maps.MarkerImage('plugins/google_javascript/images/flag_pacifica.png', new google.maps.Size(31,35), new google.maps.Point(0,0), new google.maps.Point(4,27)),
shadow: new google.maps.MarkerImage('plugins/google_javascript/images/flag_shadow.png', new google.maps.Size(31,35), new google.maps.Point(0,0), new google.maps.Point(4,27)),




to:

image: new google.maps.MarkerImage('http://wevebeenwaitingforyou.com/maps/google_javascript/images/flag_pacifica.png', new google.maps.Size(31,35), new google.maps.Point(0,0), new google.maps.Point(4,27)),
shadow: new google.maps.MarkerImage('http://wevebeenwaitingforyou.com/maps/google_javascript/images/flag_shadow.png', new google.maps.Size(31,35), new google.maps.Point(0,0), new google.maps.Point(4,27)),




the problem with the head code not being added to the page was caused because your template does not contain a head editable region.

to prevent this in the future, make sure you template has an editable region in the head section of the page named "head" just before the closing </head> tag:

<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
Sign in to reply to this post

CUAD

Sorry, still no flag on the page. It shows on: fargo.php but not on the onRoad.php?page=fargo page.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...