Is it possible to edit the "Address Map Locator" widget, to get the longitude and latitude fields removed?Also is it possible to make the map smaller?

  • DamienKnapp
    Asked on March 31, 2016 at 11:42 PM

    I don't have any experience using CSS so I'm not sure if my above requests can be completed using CSS?

  • Chriistian Jotform Support
    Replied on April 1, 2016 at 4:31 AM

    Yes, it is possible to remove the Longitude and the Latitude from being displayed on the Address Map Locator Widget using custom CSS.

    1. Click the wand icon of the Address Map Locator widget to open the wizard.

    Is it possible to edit the Address Map Locator widget, to get the longitude and latitude fields removed?Also is it possible to make the map smaller? Image 1 Screenshot 40

    2. Click the Custom CSS tab and paste the code below to the text area:

    #inputLat-row, #inputLng-row {

        display: none;

    }

    Is it possible to edit the Address Map Locator widget, to get the longitude and latitude fields removed?Also is it possible to make the map smaller? Image 2 Screenshot 51

    3. Then to make the map smaller, add the css below to the Custom CSS tab of the widget. You can change the value of the yellow highlighted text to your own liking.

    #container{

     width: 400px!important;

    }

    #map{

      height: 300px!important;

    }

    4. The widget should now look like this:

    Is it possible to edit the Address Map Locator widget, to get the longitude and latitude fields removed?Also is it possible to make the map smaller? Image 3 Screenshot 62

    If you need further assistance, please let us know.
    Regards.

     

     

  • DamienKnapp
    Replied on April 3, 2016 at 9:37 PM

    Excellent that's great, thanks for your help! This isn't super critical but is it possible to also have the longitude and latitude removed when I'm using the HTML for the Address Map Locator in a different field?


    Is it possible to edit the Address Map Locator widget, to get the longitude and latitude fields removed?Also is it possible to make the map smaller? Image 1 Screenshot 20

  • Chriistian Jotform Support
    Replied on April 3, 2016 at 10:32 PM

    Unfortunately, it is not possible to remove the longitude and latitude from the HTML for the Address Map Locator. The CSS we previously applied only prevents the longitude and latitude from being displayed on the form, but it is still being recorded by the widget. So the {currentAddress} captures the whole data from the widget, including the longitude and latitude.

    A possible alternative would be to use the GeoLocation widget. That way, you can choose to output only the address.

    http://widgets.jotform.com/widget/geolocation 

    Is it possible to edit the Address Map Locator widget, to get the longitude and latitude fields removed?Also is it possible to make the map smaller? Image 1 Screenshot 20

    Please let us know if you need further assistance.
    Regards.