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 ForumsMapMapMap module localization flaw - center off the coast of AfricaMap module localization flaw - center off the coast of Africa
Previous
 
Next
New Post
2/8/2009 1:33 PM
 

Hi Kevin,

Love the module and I use it for a couple of clients here. One thing though: there is a pretty serious issue with lat/long conversions that won't become aparent unless you start building multilingual sites. The problem is the fact that the decimal point is a decimal comma in some cultures. So (de)serializations should always make sure that they use the System.Globalization.CultureInfo.InvariantCulture. For probably very good reasons you've chosen to leave Latitude and Longitude in the map config as strings. But the conversion is culture sensitive. So someone that edits the map in en-US and sets a longitude of 6.87027, that will not parse out in fr-FR. So IsNumeric(_Longitude) (configuration.vb, line 70, v.01.00.09) will fail and 0.0 will be returned. The net result is that while on my map the central location is shown well in us-EN, as soon as a fr-FR visitor comes to the site, the central location is off the coast of Africa (0.0, 0.0).

You'll need to do the following:

  1. You type specify the lat and long to be doubles in configuration.vb
  2. You handle conversions of string to double and reverse using the InvariantCulture.

Cheers,

Peter

 


Peter Donker
Bring2mind http://www.bring2mind.net
Home of the Document Exchange,
the professional document management solution for DNN
 
New Post
9/4/2009 3:02 PM
 

Wow first click from a Google search and I've found the answer to my strange Google map module that used to work fine..... until using it on sites in French!

 

Just have to fix the code now!

Thanks!

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapMap module localization flaw - center off the coast of AfricaMap module localization flaw - center off the coast of Africa


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