Hide map type and overview in dynamic PHP map

Home Forums MapPress Support Hide map type and overview in dynamic PHP map

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9385
    2point5kids
    Participant

      I’m dynamically generating my map in PHP, and I want to hide as many of the map controls as possible.  I see that you have the ability to hide the map type and overview arrow when creating maps in the regular admin, but I don’t see how to do that in my PHP.

      Help please.

      #9405
      Chris
      Keymaster

        Hi,

        Here’s a shortcode to disable pretty much everything. You can find a list of the various options in the documentation – I was assuming the arrow you meaen is for the overview map control:

        [mappress maptypecontrol="false" streetviewcontrol="false" traffic="false" overviewmapcontrol="false"]

        #9407
        2point5kids
        Participant

          Thanks, I had looked at that documentation and assumed that I didn’t need to set overviewmapcontrol because its default was listed as false.  It is actually true.

          This is how my final code looks for a PHP implementation:

          echo $mymap->display(array(“directions”=>”none”, “maptypecontrol”=>false, “overviewmapcontrol”=>false));

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