- This topic has 2 replies, 2 voices, and was last updated 11 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › MapPress Support › Hide map type and overview in dynamic PHP map
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.
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"]
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));