I need to make it open a panel with Open Street Map on it but my code is not working, when I click on the button I added, it gets the loading screen but doesn't show anything and the console shows an error.

My Code:

{
    showMapContainer: function() {
		var mapsConfig = {
			mapsData: []
		};
 
		mapsConfig.mapsData.push(
			{
				address: "0.0, 0.0",
				content:"<h2>Check-In</h2>",
				gpsE: "0.0",
				gpsN: "0.0",
				isCoordsItem: true,
				useCurrentUserLocation: true
			}
		);
		MapsUtilities.open({
			mapsConfig: mapsConfig,
			scope: this
		});
	}
}

Error:

Like 1

Like

1 comments
Best reply

I solved it, I needed to add the GetMapsConfig in messages:

I solved it, I needed to add the GetMapsConfig in messages:

Show all comments



Hello Team!

 

Im aware about the bad working of OSM with address + postal code in some countries. There is any way to change the search of OSM in Creatio to use only the postal code field and not the entire address?

Like 0

Like

3 comments

Hello Federico,

 

Our R&D team is aware of this problem, but it is a question to the OpenStreetMap service. Unfortunately, there is no fix for this problem at the moment, but there is a task registered to our R&D team.

 

Best regards,

Bogdan

Bogdan,

 My question is if there is any way to modify the OTB funsionality in order to only search by postal code insted of the full address string.

I have a requirement that only include the search by postal code, and in OSM looks working, but creatio is sending the full address string.

Dear Federico Buffa,



The search algorithms of the Creation system used the open street maps mechanism. So, unfortunately, we are not able to change the logic of the search. 



Best regards,

Bogdan

 

Show all comments