ThinkGeo.com    |     Documentation    |     Premium Support

Dotnetnuke

Hi there


Do you any dotnetnuke modules for the Map Suite Web Edition?



Guss, 
  
 We don’t have any DNN modules now. It is definitely a good idea and maybe we can add one in the future. 
  
 Thanks, 
  
 Ben 


Thanks for the reply…then it seems that we just have to add a few coding hours and add it ourselves. Yes, I would be a nice additional feature, or even a seperate product.

Guss, 
  
   I am a big DNN fan and have used it for a few websites of my own.  I am wondering what you see as the advantage of wrapping the web edition in a module.  I mean from what I can remember it is pretty easy to create your own modules.  Amusing you can get the module loaded with the entire DNN source tree to compile it. :-)  Do you want it off the shelf so you can just plug it in?   What kinds of other features would you see?  Are you using the new DNN 5?  Did they change the module development system in that one?  I remember going way back that they have changed the way they do modules a few time.   Sorry for all the questions but I had to ask knowing I have a knowledgeably DNN guy on the line. 
  
 David

Hi there.


I am trying to use Map Suite 3.0 AJAX  Tools in DotNetNuke 4.9  Modules. 


Using the Map object  in  Page  (System.Web.UI.Page) the Map object present all layers etc. but no cklick message works .


Using it  in Control (PortaModuleBase) nothing appears and no errors presented on debugging.


Is someone worked on it ?.  Thanks in advance.


George



Hi,  
  
 I am just creating a DNN 5.0 module to host a simple thinkgeo map web edition control but after installing the module on the DNN site i get a javascript error "“mapParser’ is undefined”. did someone has done this before?  
  
 I just put the Map control inside the View…ascx control and set the unit as meter, background as “ShallowOcean” and add a “GoogleOverlay” as suggested in the samples 
  
 thanks in advance 
  
 Ariel

Hi,  
  
 I am just creating a DNN 5.0 module to host a simple thinkgeo map web edition control but after installing the module on the DNN site i get a javascript error "“mapParser’ is undefined”. did someone has done this before?  
  
 I just put the Map control inside the View…ascx control and set the unit as meter, background as “ShallowOcean” and add a “GoogleOverlay” as suggested in the samples 
  
 thanks in advance 
  
 Ariel

Hi Arier,


I had the same problem. Solved following the help of  " Microsoft JScript runtime error: 'mapParser' is undefined" topic of the forum.


George



Guys, 
  
   I found the topic and wanted to post the direct link.  Go ahead and try the script I guess, if that what fixed it George?  I wonder if this made it in to today’s build.  You may want to download the latest release from today and see if that fixes the problems before trying this script fix below. 
  
 gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/aft/5372/afv/topic/Default.aspx 
  
 David

Hi, 
  
 thank you very much George and David for your answers, but neither the latest release nor the scripts found in the referenced post solve the problem. I am still getting the "mapParser" is undefined JavaScript error. the only think I can think off about the error is that maybe my dnn configurations or iis7 configurations (on Windows 7 x64) are the ones causing it. I will try to setup another development environment, during the weekend, on Windows XP and try it there. I will let you know if the error persists.  
 In the meanwhile if David or George want to take a look to my simple dnn module to see if there is any problem with my code, I will be happy to send you a .zip file with the vs2008 C# project. 
  
 Ariel

Hi Ariel,


I am using Windows 7 and VS2008.


Please send attach the C# code.


George


 



Ariel, 
  
   Yea send the code and we can try it out.  I used DNN for awhile but haven’t done any modules for years.  I remember in the old days it was quite a pain to get the environment setup.  Anyway we should so it here anyway as DNN is a pretty popular platform. 
  
 David

Hi,


Below you can find the VS2008 project for the test dnn module I am working on. Its a simple module as you will see, just the Map component and a GoogleOverlay layer (added to see something and interect with it).


Thank you very much for your help.


NOTE: I did not include the Thinkgeo dlls (bin folder) because of the attachment file size limit restriction.


Ariel


 



Hi Ariel,


1.  The message "mapParser undefined" is the previus of another message that is "Object reference not set to an instance of an object". The "mapParser undefined" is a message because the control loops in the "Is not Postback" code.


2. Dotnetnuke uses "control" NOT "page" and I do not know how do bypass this diference.


3. If you use "page" instead of "control" then you can not use any event because you will receive the  "Object reference not set to an instance of an object".  This is also for the events IN THE MAP Control.


4. Up to now and upon my knowledge I wil use Map Suite tools only with DotNetNuke iFrame module.


5. I will continue try to build a classic  DNN module but I think that help from ThinkGeo is needed.


George   



Thanks George, 
  
 at the end, I was also forced to use the DNN iFrame module to show and interact with the ThinkGeo Map control for the team meeting we had yesterday. We are a little worried about this solution because all the interactions between  our custom and non DNN modules and the GIS page (iFrame Module) has to be done through http query strings. This will required a more detailed design of the interaction among them, and hope that nothing came out later that could compromise our choice. 
 I am agree with you that some help from ThinkGeo is needed to solve the DNN integration problem.  
 Thank you very much again for your help. As I tell you above we will follow with the iFrame solution, but we also will continue to try with the DNN integration.  
  
 Ariel 


Thanks George, 
  
 at the end, I was also forced to use the DNN iFrame module to show and interact with the ThinkGeo Map control for the team meeting we had yesterday. We are a little worried about this solution because all the interactions between  our custom and non DNN modules and the GIS page (iFrame Module) has to be done through http query strings. This will required a more detailed design of the interaction among them, and hope that nothing came out later that could compromise our choice. 
 I am agree with you that some help from ThinkGeo is needed to solve the DNN integration problem.  
 Thank you very much again for your help. As I tell you above we will follow with the iFrame solution, but we also will continue to try with the DNN integration.  
  
 Ariel 


Hi Ariel,


 Our effords with Silverlight version have no results.


We will continue with AJAX version.


George



George, Ariel 
  
 We try to embed our web control into DNN but failed. It throws the same exception as George met. We are not the expert of DNN; so we need do some research on it first. It’s on our schedule already.  
  
 We’ll let you know when we have an update. 
  
 Thanks, 
 Howard

I just successfully deployed a thinkgeo map within DNN (6.2.2), while also still having access to all the DNN specific methods. 



In short I created the map in a web application project, and deployed the aspx and the dll's to DNN.


Here is the detail.  



Using the asp.net ajax 6.0  c# sample project, I created a new aspx page and the map I wanted to test out.  It is a fairly advanced map with lots of javascript and layers, database calls, as well as leveraging Telerik controls. 



I then copied the DotNetNuke, DotNetNuke.Instrumentation and DotNetNuke.Log4Net dll's to the Samples Dependencies folder (this is the folder above the c# samples folder) and then referenced the dll's in my project. 



I then changed the code behind of my aspx so that it derives from DotNetNuke.Framework.PageBase instead of Page.   This allows you to write any DNN specific method calls, like retrieving PortalSettings.UserInfo.Username. 



I then rebuilt the project.  (At this point it will throw an error if you try to run it in the Sample project.) 



I then copied all of the dll's from the C# samples bin folder to the DNN bin folder.  This includes the CSSamples.dll that contains all your app_code and code-behind. 



I then copied over the map's aspx file, as well as any supporting folders/files (images, scripts, styles, syntaxhighlighter, theme etc). 



At this point I was able to navigate to the map within the DNN website.  I tested to see if it would retrieve DNN specific methods, and it does.  Just make sure you are logged in to get the userId etc. 



I have not tried converting it to a control and making it into a module, but I can't imagine it will be that big of a deal. Change it to an ascx, derive from PortalModuleBase and create the module with the DNN GUI.  I don't have a need to create a module so I probably won't attempt it.   



I hope this helps anyone trying to get the two technologies to work together.  Let me know if you have questions. 



That’s Great Chad! Thanks for sharing your experiences about this, we hope this helps everyone who is trying to get the two technologies to work together. 
  
 Thanks, 
  
 Edgar