Google Maps

Permalink
I would appreciate help regarding google map and google map premium blocks.
I have to manually input location as latitude and longitude due to the fact that google maps is not available in the area, unfortunatelly even though i input it like this: 45.418899,23.959658 ( btw this works on maps.google.com ) both blocks show it like this 45,23 resulting in a complete different location, shown on map. As you see decimal values are ignored.
what i've tried so far:
uninstall and install of google map (premium block).
i've tried with a kml file also, it works in google earth but not with the block.
i've tried the simple google block also, this saves the corect data but shows the location without decimal data so a wrong location.
i've also tried with comma(,) instead of dot(.) the same thing does not work at all.

what i know:
google map (premium) 1.1.1 does not save decimal data of coordonates and displays data without decimal.
gogole map block saves the decimal data of coordonates but displays data without decimals.

I'm using concrete5 5.3.3 on a PHP 5.2.9 server.

 
frz replied on at Permalink Reply
frz
what do you mean kml doesn't work with the block? i've had that work..

are you saying you can't upload KML files at all? or it dies in some way? screenshots? details? thx
lexteo replied on at Permalink Reply 2 Attachments
Thanks frz for your quick reply.

I've attached 2 screenshots of the google map premium block.
First is at the moment of input as you see the kml file is attached.
Second is at edit moment as you see decimals were lost after input.
Code of kml file:
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
  <Placemark>
    <name>The Office</name>
    <description>our offices bla bla bla
    </description>
    <Style>
      <BalloonStyle>
        <bgColor>ffffffff</bgColor>
      </BalloonStyle>
    </Style>
    <Point>
      <coordinates>24.372258,45.101178</coordinates>
    </Point>
  </Placemark>


any ideas ?

Excuse the language in screenshots but i'm currently working in translation of concrete5 in romanian 90% done, i hope to finish it soon and upload it in svn
lexteo replied on at Permalink Reply
I kinda solved the problem for the moment by looking for the btGoogleMapPremium table in the mysql database, then in the table i identified the block id for my map.
As I suspected the values of longitude and latitude were saved without the decimal point so instead of having a value like 45.456456 i was having 45. So i edited the longitude and latitude fields manually from phpmyadmin and it seems to work now.
About the kml file frz you were right, it was my fault i edited the kml file within google earth and everything shows up now.

Though I solved the problem for the moment I think you should take a look at the module it seems to be a bug with saving the right values for latitude and longitude, also when editing because if i try to edit the map it loses everything after decimal point even though i manually entered the values in DataBase.
Also for future version of google map premium you should add an example to the latitude and longitude fields to inform the user about the right format to use (degrees)
lexteo replied on at Permalink Reply
I found out that this is a bug related to local settings:
http://www.concrete5.org/community/bugs/problem_with_google_maps_in...