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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapGetting the point description to auto displayGetting the point description to auto display
Previous
 
Next
New Post
4/17/2009 9:25 AM
 

This may have been answered already, and if so I apologize.

How do I get the point description box to auto display, that is, to show the information ([Description], [Address], etc) to display without the user having to click the point?

I could not find a thread with the info.

Thanks in advance,

Chris

 
New Post
4/21/2009 2:33 PM
 

You keep challenging me with this stuff Chris!!

Just so happens I wanted this functionality as well so now I've figured out a way to make it work for you. For me, it'll be a little more difficult to implement and I have to think a little bit harder. That and the fact I don't really know Javascript will have me head-scratching for a little longer methinks

OK, so this procedure will only work properly if you only have one datapoint to plot. If you have more, only the last plot rendered will display the Info Window, the others will just be normal points. Be advised, this involves changing one of the Javascript files on your site. If the map module is updated in the future, this change will almost certainly be overwritten and you'll need to re-apply the code below.

Also, I caveat this with the normal warning. I am by no means an expert and have applied limited testing to this code. It works on my system and in my environment with a single point map and a multi point map (with the limitation mentioned above), but by using this technique you accept responsibility for any consequences to your systems.

With that out of the way, here is the code change that I made:

  1. Locate and edit the DesktopModules/Map/Visuals/Google.Standard.js file.
  2. Find the line that begins function Map_PlotPoint - in my copy, this is line number 156.
  3. Within that function, find the line if (currentMarker!=null) - in my copy, on line 201
  4. Under the eval statement within this code block, add a new line with the following code: currentMarker.openInfoWindowHtml(description);
  5. Save the file
  6. Load (or re-load) your map page and you should see the info window displayed. This is in view mode, not Edit Map mode.

My problem is that I have a map that will be used to display all of the businesses on my site, but I also want to use the same map to display just a single point if the user just wants to find one business. I therefore need some mechanism for passing a parameter to the Javascript to set the pop-up behaviour. If anyone else can help me to implement this, I'd appreciate it! Also, if anyone else can suggest a more elegant way of achieving the same results, there's at least two of us here who would love to hear from you.

As before Chris, can you please let me know if it works for you!


Regards,
Sean

www.puffettfoto.com
 
New Post
2/9/2010 4:58 PM
 

this solution is not working for me.  its not causing a javascript error so I assume it is executing correctly.  has there been a better solution for this in 1.0.0.9 / dnn 5.x?  any help is appreciated!

- John

 
New Post
2/9/2010 5:27 PM
 

Hi,

Thanks to the previous post I was able to resolve my issue.  I guess I since I have my single point loaded via lat / long, it was not firing the function on line 203.  The function that was firing on my map was on line 60 within the Map_PlotBasePoint(ID) function.    I added currentMarker.openInfoWindowHtml(eval('DDESC' + ID)); after the addOverlay at line 61.  thanks for this great forum! 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapGetting the point description to auto displayGetting the point description to auto display


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