MapPress with mobile

Home Forums MapPress Support MapPress with mobile

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10680
    manunc
    Participant

    I have put this code inside single-listing.php (Vantage) to display the map but in mobile (Android) it does not display correctly, because of the fix width and height value configured.

     

    How to resize dynamically the map following the device (pc, mobile

     

    $mymap = new Mappress_Map( array(
    “width”         => 100%,
    “height”      => 450,
    “maptypeid”     => “satellite”,
    “center”        => array(“lat” => $coord->lat, “lng” => $coord->lng),”zoom” => 18 )
    );

    #10681
    manunc
    Participant

    It seems Mappress_Map does not take in account percentage value but only pixel values.

    #10682
    manunc
    Participant

    Got it working with  “width” => ‘100%’,

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