google maps in jquery mobile

前端 未结 4 1535
栀梦
栀梦 2020-12-28 20:06

When showing a google map in jquery mobile it appears (after reading the forums) that code like the following is required:

4条回答
  •  执笔经年
    2020-12-28 20:33

    There is an official example for this here: http://view.jquerymobile.com/master/demos/examples/maps/geolocation.php

    HTML:

    Map View

    CSS:

    .page-map, .ui-content, #map-canvas { width: 100%; height: 100%; padding: 0; }
    

提交回复
热议问题