Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Problems inserting a simple google maps in my custom moduleProblems inserting a simple google maps in my custom module
Previous
 
Next
New Post
4/21/2009 10:48 AM
 

Hi.

In my project www.aveiromagazine.com (tab Bares), when you click in a bar name, show the name, e-mail, and I want to show the location in google maps. I try in a separate project to try the google maps integrate with aspx pages, and everythig goes well, but when I try to insert in the module the map don't show up.

I have this code in vb file, page load:

 

Dim body As System.Web.UI.HtmlControls.HtmlGenericControl = CType(Page.FindControl("Body"), System.Web.UI.HtmlControls.HtmlGenericControl)"UrlGoogleMaps", ResolveClientUrl("http://maps.google.com/maps?file=api&v=2.x&sensor=false&key=ABQIAAAA-Z-lBMrt2XDfP-YP63c7kRTqz7d8C8Jj0R24c23-UrfUbKpoLRRO6j8M6ii3NyOrpF3d60H36u9PXw"))"GoogleMaps", ResolveUrl("~/js/GoogleMaps.js"))

and in js file I have this:

var

map = null;

var

 

 

 

map =

map.setCenter(

map.setUIToDefault();

geocoder =

}

}

 

 

 

geocoder.getLatLng(

address,

 

 

address +

}

map.setCenter(point, 13);

 

map.addOverlay(marker);

marker.openInfoWindowHtml(address);

}

}

);

}

}

geocoder = null;function initialize() {if (GBrowserIsCompatible()) {new GMap2(document.getElementById("map_canvas"));new GLatLng(37.4419, -122.1419), 13);new GClientGeocoder();function showAddress(address) {if (geocoder) {function(point) {if (!point) {" not found");else {var marker = new GMarker(point);

It's simple, but the map don't show... You now why?

Thank you

Page.ClientScript.RegisterClientScriptInclude(

Page.ClientScript.RegisterClientScriptInclude(

 
New Post
4/21/2009 12:16 PM
 

see: Store Locator for sample code



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
4/22/2009 11:42 AM
 

I try to use same of the code, but my module is must simply...

But I can put the google maps show...If I send you the code you can help me?

Thank you

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Problems inserting a simple google maps in my custom moduleProblems inserting a simple google maps in my custom module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out