Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Googlemap coordinates return zero for non-english culture View modes: 
User avatar
Member
Member
Yevgeniy Astakhov - 11/11/2013 8:59:09 AM
   
Googlemap coordinates return zero for non-english culture
Hello,

I'v got trouble with displaying GoogleMap webpart on the page with non-english culture (nl-NL).

Some float values with fraction part are assigned to Latitude and Longitude properties. When I try to read this properties, I obtain 0.0 value. As a result, Javascript code is generated:

" ... google.maps.LatLng(0, 0)" - someware in Gulf of Guinea.


There is no problem with float values with zero fractional part or if I set Culture to "en".

Is there any workaround for this trouble?
Thanks.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 11/18/2013 8:00:16 AM
   
RE:Googlemap coordinates return zero for non-english culture
Hello Yevgeniy,

I will try to reproduce this behaviour, could you please just provide us with the exact steps we need to follow? What exact values are you using?

Best regards,
Martin Danko

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 11/18/2013 8:17:53 AM
   
RE:Googlemap coordinates return zero for non-english culture
What Google Maps webpart are you using? Document? or Basic? If you're using a document, I believe you have to have a nl-NL version of that document created in order for it to be picked up and displayed properly when you have selected that language otherwise you could get unexpected results.