Products

Solutions

Resources

Partners

Community

About

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 ForumsMapMapGoogle map and localizationGoogle map and localization
Previous
 
Next
New Post
10/4/2008 10:18 AM
 

I have this problem also. I try modified values in

exec dbo.UpdateProfile @UserId = 3, @PortalId = 0, @ProfileData = N'<......' (I get it from SQL Profiler) and run. It does not help.

 
New Post
1/20/2009 4:44 PM
 

Hi,

I have also the problem. I have French as local culture, as well as a french SQL Server.

I have so far identified two problems.

The first one is in the interface screen where the default position is not stored. It comes from the Latitude and Longitude properties where there is a IsNumeric test on the Get, and with the french local culture IsNumeric returns False for a numeric string with a point (example : IsNumeric("44.234") = False if the culture separator is ",").

The second one happens when you create (or edit) data points. When you have a decimal value for longitude or latitude it isn't stored. I have debuged the javascript, and there is also a function that does test if the value is numeric, and it does always return false for decimal value with a comma for decimal separator.

I wil try to fix the code and to post the fix as soon as I have it done.

Olivier

 
New Post
1/28/2009 3:48 AM
 

Hi,

 

We fixed the problem. We replaced the IsNumeric function by Double.TryParse with a format provider.

To solve this issue, you will have to modify the code of the project DotNetNuke.Map.Sources.Standard in the file Standard.Data.ascx.vb in function SetData line 459 :

Current code is :

    If variables.ContainsKey("latitude") AndAlso IsNumeric(variables("latitude")) Then

                    point.Latitude = Double.Parse(variables("latitude"), System.Globalization.CultureInfo.InvariantCulture)

                Else

                    point.Latitude = -1

                End If

                If variables.ContainsKey("longitude") AndAlso IsNumeric(variables("longitude")) Then

                    point.Longitude = Double.Parse(variables("longitude"), System.Globalization.CultureInfo.InvariantCulture)

                Else

                    point.Longitude = -1

                End If

 

Fixed code is :

    If Not (variables.ContainsKey("latitude") AndAlso Double.TryParse(

variables("latitude"),              

Globalization.NumberStyles.Any,

System.Globalization.CultureInfo.InvariantCulture,

point.Latitude)) Then

                    point.Latitude = -1

                End If

                If Not (variables.ContainsKey("longitude") AndAlso Double.TryParse(

variables("longitude"),

Globalization.NumberStyles.Any,

System.Globalization.CultureInfo.InvariantCulture,

point.Longitude)) Then

                    point.Longitude = -1

                End If

 

You will have to modify the code of the project DotNetNuke.Map. Visuals in the file Configuration.vb line 57 and 69 :

Current code :

        Public Property Latitude() As String

            Get

                If _Latitude Is Nothing OrElse Not IsNumeric(_Latitude) Then

                    Return "0.0"

                End If

                Return _Latitude

            End Get

            Set(ByVal Value As String)

                _Latitude = Value

            End Set

        End Property

        Public Property Longitude() As String

            Get

                If _Longitude Is Nothing OrElse Not IsNumeric(_Longitude) Then

                    Return "0.0"

                End If

                Return _Longitude

            End Get

            Set(ByVal Value As String)

                _Longitude = Value

            End Set

        End Property

 

Fixed code

        Public Property Latitude() As String

            Get

                Dim lat As Double

                If _Latitude Is Nothing OrElse Not Double.TryParse(_Latitude, Globalization.NumberStyles.Any,

Globalization.CultureInfo.InvariantCulture, lat) Then

                    Return "0.0"

                End If

                Return _Latitude

            End Get

            Set(ByVal Value As String)

                _Latitude = Value

            End Set

        End Property

        Public Property Longitude() As String

            Get

                Dim lng As Double

                If _Longitude Is Nothing OrElse Not Double.TryParse(_Longitude, Globalization.NumberStyles.Any,

                             Globalization.CultureInfo.InvariantCulture, lng) Then

                    Return "0.0"

                End If

                Return _Longitude

            End Get

            Set(ByVal Value As String)

                _Longitude = Value

            End Set

        End Property

I hope this will help, and will be included in the basic code :)

Olivier

 

 
New Post
4/28/2009 4:44 AM
 

Will the bug be fixed soon?

 
New Post
9/9/2009 8:52 AM
 

Can anybody email me or provide a link to download the updated map - I've got a few sites localised in France that are not working and I'm not a VB junky so recompiling the module would be a nightmare for me...

Thanks

Julian

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapGoogle map and localizationGoogle map and localization


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