Delphi FMX et OpenStreetmap

  

I want to add a map in my application that contains a list of nearby stores. I wanted to integrate OpenStreetMap but I don’t know where to start, even when I tried to add the TWebBroweser component and i put the url" www.openstreetmap.org" i don’t have a result, and i tried to make a html url
OpenStreetMapsPage: AnsiString =
‘<html> ‘+
‘<head> ‘+
‘<meta name="viewport" content="initial-scale=1.0, user-scalable=yes" /> ‘+
‘<script src="http://www.openlayers.org/api/OpenLayers.js"></script> ‘+
‘<script type="text/javascript"> ‘+
‘ function initialize() ‘+
‘{‘+
‘ map = new OpenLayers.Map("map_canvas");’+
‘ map.addLayer(new OpenLayers.Layer.OSM()); ‘+
‘ var lonLat = new OpenLayers.LonLat( [Lng] , [Lat] ) ‘+
‘ .transform( ‘+
‘ new OpenLayers.Projection("EPSG:4326"), ‘+
‘ map.getProjectionObject() ‘+
‘ ); ‘+
‘ var zoom=16; ‘+
‘ var markers = new OpenLayers.Layer.Markers( "Markers" ); ‘+
‘ map.addLayer(markers); ‘+
‘ markers.addMarker(new OpenLayers.Marker(lonLat)); ‘+
‘ map.setCenter (lonLat, zoom); ‘+
‘}’+
”+'</script> ‘+
‘</head> ‘+
‘<body onload="initialize()"> ‘+
‘ <div id="map_canvas" style="width:100%; height:100%"></div> ‘+
‘</body>’+
‘</html>’;

and nothing,
someone can help me please and thank you

Comments are closed.