#1 November 5, 2013 12:59pm

mickk
Member
Registered: November 5, 2013
Posts: 5

Google Map with icon development

Hi there i wondered if anyone could point me in the direction to add google map or bing map service with icons controlled by long and lat with images and pdf downloads for each specific icon.


Any help or advice would appreciated,


Thanks
Mike

Offline

#2 November 5, 2013 1:03pm

benplum
Administrator
Registered: March 30, 2012
Posts: 54

Re: Google Map with icon development

You should start by setting up a new table containing the "latitude" and "longitude" fields to control your module. You can then use the "Geocode" field type when building the module's form. BigTree will automatically update the proper fields on save.

To actually display the markers on a map you're going to want to check out the Google Maps Javascript API: https://developers.google.com/maps/docu … avascript/


Offline

#3 November 5, 2013 1:43pm

mickk
Member
Registered: November 5, 2013
Posts: 5

Re: Google Map with icon development

Thats great thanks for the help.

Offline

#4 November 5, 2013 3:19pm

mickk
Member
Registered: November 5, 2013
Posts: 5

Re: Google Map with icon development

i have taken a look and i am very new to this and would really appreciate a bit more detail on what steps to take. Would you be able to help any more?


Thanks

Offline

#5 November 5, 2013 3:21pm

benplum
Administrator
Registered: March 30, 2012
Posts: 54

Re: Google Map with icon development

We're happy to help out with getting your module configured. Do you have BigTree installed? Have you looked through the developer documentation on modules? What questions do you have specifically?

Offline

#6 November 5, 2013 3:31pm

mickk
Member
Registered: November 5, 2013
Posts: 5

Re: Google Map with icon development

thanks. I have BigTree installed and all working. I have had a look but i am very new to php so i might be out of my depth.


i guess basic step by step guide would help. I used to work with ASP and i have done something similar before but not PHP

Offline

#7 November 5, 2013 3:40pm

benplum
Administrator
Registered: March 30, 2012
Posts: 54

Re: Google Map with icon development

You will definitely need some PHP knowledge to do anything in BigTree. Here are some resources to get you started there:

-Docs: http://us1.php.net/manual/en/
-Getting Started (tutorial): http://us1.php.net/manual/en/getting-started.php
-PHP Academy: https://phpacademy.org/videos
-Codecademy: http://www.codecademy.com/tracks/php
-Lynda.com: http://www.lynda.com/PHP-tutorials/Intr … 485-2.html

PHP Academy includes some PHP and MySQL tutorials. Codecademy is probably the most basic and a good place to start.

This should help get you started understanding Modules: http://www.bigtreecms.org/documentation … e/modules/
Then as you start building your module, you'll want to read up on the Geocoding field type: http://www.bigtreecms.org/documentation … geocoding/

Step-by-step, this would look like:

1. Create table for new your module
2. Build your new module in the BigTree developer section
3. Remember to add a new geocoding field when building your module's form
4. Enter some new markers with addresses
5. In your template, use the module to query for your new markers
6. Draw your new markers.

Offline

#8 November 5, 2013 4:24pm

mickk
Member
Registered: November 5, 2013
Posts: 5

Re: Google Map with icon development

this is great. I will go through this info. Very appreciated.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.