Default Start Location

Home Forums MapPress Support Default Start Location

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9522
    jscott
    Participant

      Is it possible to set a default starting location?

      Thanks,

      Jeff

      #9590
      jscott
      Participant

        Is this possible? Any assistance would be appreciated!

        Thanks a lot,
        Jeff

        #9607
        01-Scripts
        Participant

          I’m also looking for a solution.
          So I would really appreciate some hints on that topic.

          Regards,
          Michael

          #9623
          Chris
          Keymaster

            Hi,

            Sorry, but that’s not supported by the plugin yet.  You could possibly modify the PHP code to force the address you want in the directions form – let me know if you want to try that approach.

            #9626
            01-Scripts
            Participant

              Hello,

              I’d like to try to modify the PHP code by myself. Can you give me a hint where to start?

              Thanks,
              Michael

               

              #9630
              Chris
              Keymaster

                Hi,

                Sure, check out file ‘mappress_api.php’, function ‘_mapp_directions_html’.

                There’s a filter as well: ‘mapp_directions_html’.

                You can try hardcoding the start location (I’m assumng that’s what you want to do) here:

                <input style='width:90%' type='text' id='{$options->mapName}_saddr' value='' />

                As a heads-up, in the next release the filter will be removed and the directions form will be in a separate ‘template’ file.  You will need to copy the template to your theme directory and re-apply any changes there (but only once).

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.