Last active
January 6, 2018 23:31
-
-
Save shcyiza/3a96c9e603a9a0b91fd932d8315b0b5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- how to use G_mapper --> | |
<!-- 1) add an input field with this structure --> | |
<input type="text" id="any_id_u_like" data-gmapper-input> | |
<!-- 2) add a div with “data-gmapper-render-for” with the id of input you've added as data attribute value --> | |
<div data-gmapper-render-for="any_id_u_like"> | |
<!-- 3) add a child div with id “distance” --> | |
<!-- and “data-gmapper-endpoint” with the address you want the itinerary from as value --> | |
<div id="distance" data-gmapper-endpoint="Cantersteen 10, 1000 Bruxelles"> | |
</div> | |
<!-- 4) add And another child div with id “map” --> | |
<div id="map"> | |
</div> | |
</div> | |
<!-- then is gmapper ready to go --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment