Jump to content

himmaaliya

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by himmaaliya

  1. UniSession.AddJS('var gm=googleMap;if (typeof gm=="object") {var latlng = new google.maps.LatLng('+
                            StringReplace(Format('%2.4f', [Lat]), ',', '.', [rfReplaceAll])+','+
                            StringReplace(Format('%2.4f', [Long]), ',', '.', [rfReplaceAll])+
                          '); gm.setCenter(latlng); gm.setZoom(8);'+
                         
    'var marker = new google.maps.Marker({'+
                          'position: latlng,'+
                          'map: gm,'+
                          'title: "Hello!"})}');

     

     

    is this single marker...

     

    how to make multiple marker

    help me please

  2. Hi,

     

    Try this:

     

    1. Open a demo project:

    ..\FMSoft\Framework\uniGUI\Demos\Touch\GoogleMaps

    2.

    procedure TMainmForm.SetCoord(Lat, Long : Real);
    begin
      if WebMode then
        UniSession.AddJS('var gm=googleMap;if (typeof gm=="object") {var latlng = new google.maps.LatLng('+
                            StringReplace(Format('%2.4f', [Lat]), ',', '.', [rfReplaceAll])+','+
                            StringReplace(Format('%2.4f', [Long]), ',', '.', [rfReplaceAll])+
                          '); gm.setCenter(latlng); gm.setZoom(8);'+
                          
                          'var marker = new google.maps.Marker({'+
                          'position: latlng,'+
                          'map: gm,'+
                          'title: "Hello!"})}');
    end;

    Best regards.

    help me..

    how to make multiple marker click ..?

     

    can you upload example please..

×
×
  • Create New...