function geocode(titel, name, text, addressString, [b]point[/b]) {
map.Webservices.sendRequest(
new Map24.Webservices.Request.MapSearchFree(map, {
SearchText: addressString,
MaxNoOfAlternatives: 1
})
);
map.onMapSearchFree = function(event) {
var firstResult = event.Alternatives[0];
var lon = firstResult.Coordinate.Longitude;
var lat = firstResult.Coordinate.Latitude;
[b]point = addHTMLLabel(titel, name, text, lat, lon);[/b]
}
}
[...]
[b]var <%= name %>[/b];
geocode(<%= "\"" + pntName + "\"" %>, <%= "\"" + name + "\"" %>, <%= "\"" + text + "\"" %>, <%= "\"" + adress + "\"" %>, [b]<%= name %>[/b]);