Developer forum

Forum » CMS - Standard features » DW Maps App - Show location on map

DW Maps App - Show location on map

Kevin O'Driscoll
Reply

Im using the Maps App as a basis for a  custom module. Instead of using Users and User Groups to display a Google map with users' pin locations Im using a Case study Item type as the base data. The admin edit page remains as is but Groups and users inputs will be removed.

Problem occurs when I choose Show locations on map to centre the Google map and I save the Lat and Lng co-ordinates. The following is saved to the module settings:
Local application (on a local en-gb server):

Map center (Lat): 50undefined903033

Map center (Lng): 14undefined326173

(See Local.jpg)
Development application (on a Swedish server):

Map center (Lat): 50903033,000000000000

Map center (Lng): 14326173,0000000000

(See Dev.jpg)

Result is the map cannot be displayed, although entering co-ordinates manually it works ok.
Could anyone give me a pointer here as to why this is happening?

Dynamicweb.dll 9.7.27
Microsoft SQL Server 2016 (SP1-GDR) (KB4505219) 

Rgds

Kevin

Dev.JPG Local.JPG

Replies

 
Nicolai Pedersen
Reply

Hard to tell. Looks like some kind of javascript issue in the client of your app config page. "undefined" looks like a JS error of some sort. You have to take a look at your developer tools to see what is going on.

 

You must be logged in to post in the forum