News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Mapping with Geocoder PHP and Leaflet.js
November 06, 2013 @ 10:49:43

On PHPMaster.com a new tutorial has been posted showing how to combine Geocoder PHP with Leaflet.js to create interactive maps. The Leaflet.js library lets you easily create mobile-friendly maps with simplicity and usability in mind.

Interactive maps inside a web application have a lot of great uses. From visualizing data to highlighting points of interest, maps are expected to communicate ideas within the context of location easily. The hardest part, however, is converting that data into coordinates that the map can understand. Luckily, Geocoder PHP allows us to connect to different geo-coding providers. Combined with Leaflet.js, a simple Javascript library, creating maps is a breeze.

He starts by helping you get the Geocoder library installed via Composer and make a sample page (using Bootstrap and jQuery) with a container for the map. He helps you set up Geocoder with an adapter to connect to the service of your choice (like Google Maps, Bing Maps or Openstreatmap). With this configured and created, he inputs some sample data and coverts the addresses to latitude/longitude sets. He walks you through getting Leaflte.js added to the page and pulling in these results via individual generated Javascript variables. You can check out a demo of the end result to see how it all fits together too.

0 comments voice your opinion now!
mapping geocoder leafletjs tutorial introduction interactive

Link: http://www.sitepoint.com/mapping-geocoder-php-leaflet-js/

blog comments powered by Disqus

Similar Posts

Make Me Pulse: Using the Zend Framework URL rewriting

Brandon Savage's Blog: Installing PHP 5.3 On Ubuntu

WorkingSoftware.com.au: Configuring PHP4 and PHP5 to run concurrently on FreeBSD

IBM developerWorks: A step-by-step guide to publishing your own PEAR channels

Query7.com: An Introduction to Kohana3 PHP Framework


Community Events





Don't see your event here?
Let us know!


language voicesoftheelephpant release series framework composer opinion tool community podcast version laravel security interview symfony introduction library install update package

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework