Fork me on GitHub

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 3.0 4 6 2013 Abuse adslight Android AntiHarvesting AntiMalUser AntiSpam API Apple Battlefield billige Bootstrap Captcha cell cent chronolabs CHUNG Clicks content CĂN demo docek download Dresses evden eve facebook Fat floor Food for free Gateway Google Guide herre Honeypot HP Human HỘ IP iPhone jQuery Language Legal List log Loss mobile module modules Monster new newbb news NHÀ online PARK phone PHP Prevention profile project Protector publisher Rapid RESIDENCE responsive review Rights rmcommon security Sentry site Smartphone Smoking Solution Spam Studio tags tdmcreate template The Theme themes userlog web weight Wishcraft xoops Xortify

New Users

Registering user

# 137849

hometheater

Welcome to XOOPS!

Archives

News Archives

Google Maps Module v0.3

Posted by Phatbloke on 2006/2/1 12:30:00 (12645 reads) | Posted on Modules
Well after heaps of bug fixing (of which included v0.2) I believe I am now ready for V0.3. I have had a major tidy up and things should display a lot better and hopefully with no bugs this time.

Download Here

Please let me know if you find any with as much of an explaination of what when wrong as possible.


Hopefully this module will be easy enough for all to use.
It has been made so that i can plot my travels around the world on my website for all to see
and have an easy way to input new locations.

Installation:
1. Just unpack and upload to modules directory as usual
2. Install in module administration
3. Configure module in prefs
4. Obtain an api for your site from google. Link is given in the config page.
5. Add your categories and points from the module menu.


Notes:
-The first category will be the default display for the map. This can be changed by re-ordering the categories.
-Images and links can be added in the markers using the xoops text input as usual.
-Polylines link together the markers


Have fun with it. I will appreciate suggestions and improvements although this is a fun side project so
development wont be too fast.


Change log

Version 0.3
-Added dynamic menu system for categories
-Added first category as default display
-Added ordering for points
-Fixed some language issues
-Fixed up admin area templates
-Fixed polyline displaying

Version 0.2
-Fixed issue with IE

Version 0.1
-First release


Printer Friendly Page Send this Story to a Friend Create a PDF from the article
Bookmark Me
Bookmark to Google Plus
The comments are owned by the author. We aren't responsible for their content.

I just tried to download, but the link is broken.
Published: 2006/2/1 12:58 • Updated: 2006/2/1 12:58
Try it from here: LINK
Published: 2006/2/1 13:32 • Updated: 2006/2/15 6:36
That worked! Thanks
Published: 2006/2/1 14:26 • Updated: 2006/2/1 14:26
Thanks! It works well.

Two questions...

Is there any way to have the point be centered when you click on it? Currently, when I click on any point in any group it shows the map with that point at the very bottom, almost off the map.

Secondly, is there a way to set the default view to the satellite?

Thanks again!
Published: 2006/2/1 15:53 • Updated: 2006/2/1 15:53
I installed this on 2.0.13.2 and recieved the following error when trying to create my first category:

Error: Out of range value adjusted for column 'map_id' at row 1

I also noticed there was no 'default' category as the post mentioned....
Published: 2006/2/1 17:01 • Updated: 2006/2/1 17:01
The post mention that the First Category YOU create will be the Default..
Published: 2006/2/1 17:32 • Updated: 2006/2/1 17:32
Great Module!

Only problem is I still get an error in internet explorer - "Internet Explorer Script Error - Sorry - The Google Maps API is not compatible with your Browser"
Published: 2006/2/1 17:50 • Updated: 2006/2/1 18:50
lazyd... your API key could be wrong. Make sure your using the right one for the directory your working in. (I had to make 2 one for dev and one for live).

If your key works but the problem still occurs you can remove the line that countains the else { } with the error in it at the botom of the index.php file.
Published: 2006/2/1 20:25 • Updated: 2006/2/1 20:25
Hi guys, a mirror for the download is here
LINK
Not sure why it didnt work the 1st time.


Also minkoilman I will add this into the next release.
A temp fix is to replace the following in includes/maps.js

var map = new GMap(document.getElementById("map"));
      
map.addControl(new GLargeMapControl());
      
map.addControl(new GMapTypeControl());


with

var map = new GMap(document.getElementById("map"));
      
map.setMapType(_SATELLITE_TYPE);
      
map.addControl(new GLargeMapControl());
      
map.addControl(new GMapTypeControl());

Published: 2006/2/2 1:39 • Updated: 2006/2/2 4:56
Many thanks for this release, only a question: any lang diff? i've already translate to spanish
Published: 2006/2/2 3:58 • Updated: 2006/2/2 3:58
Hi
There is 1 change and a couple additions.
The instructions are now one entry rather than 5 and text in the admin for the ordering points and categories is new.
Shouldnt take you long to have a look and change if you wish.
Published: 2006/2/2 6:13 • Updated: 2006/2/2 6:13
Seems to work okay in Firefox so I guess the Google Key is fine. It is just Exporer that I have a problem with. If I remove the else {} command from the maps.js file, I just don't get a message plus and the screen remains blank with no map rendering, plus all the points seem to be missing!?
Published: 2006/2/2 11:30 • Updated: 2006/2/2 11:30
Phatbloke this is a fantastic module. Great work. This saves me a ton of trouble making maps and uploading them to my site. The kind of work I do covers a large area and this module does the trick when someone asks directions to this location or that location. Now I can just point them to this. Again great module keep up the good work

JP
Published: 2006/2/2 13:10 • Updated: 2006/2/2 13:11
I couldnt create even the first category!

Help?

Quote:
Error: Out of range value adjusted for column 'map_id' at row 1

Published: 2006/2/2 13:28 • Updated: 2006/2/2 13:28
Quote:
Seems to work okay in Firefox so I guess the Google Key is fine. It is just Exporer that I have a problem with. If I remove the else {} command from the maps.js file, I just don't get a message plus and the screen remains blank with no map rendering, plus all the points seem to be missing!?


Do you have an example of this I can take a look at it tommorow.
Published: 2006/2/2 22:33 • Updated: 2006/2/2 22:33
Quote:
Error: Out of range value adjusted for column 'map_id' at row 1

Hi khuhner
I think i know the prob which might occur with older databases as most other people have had no probs. What version is you mysql? It searches for the last entry and it obviously hasn't found one being a new setup which may have brought the error. Do you have access directly to the DB? You could add in an entry manually maybe.

lazyd
Im not sure what is happening? What version of IE do you have? Also when you get the page to display (the blank one) in the bottom left of IE it should display a javascript error if you could tell me the line no it might give me a clue
Published: 2006/2/3 4:09 • Updated: 2006/2/3 4:09
Phatbloke,

Congratulations on what you've accomplished with the module and thanks for sharing it. You also deserve a pat on the back for keeping on top of any problems that arise and the quick updates.

Thanks again.
Published: 2006/2/3 8:32 • Updated: 2006/2/3 8:32
PhatBlok:

Using MySQL 5.0 :) I do have direct access to the DB and entered a category, but not sure what data some of the columns require. Even after entering a category manually into MySQL, it still failed. Any other ideas?

Thanks for your quick responses, BTW.

Kurt
Published: 2006/2/3 9:09 • Updated: 2006/2/3 9:09
Seems to be a problem with internet Explorer 5.2 running on the Mac.

When the blank screen comes up and I click on a catergory, I get a problem with Link_Javascript_1()
Line 335 'map' is not an object error.
or line 356, depending on what catergory I click on.

Check it out your self at http://www.streathamlife.co.uk/modules/googlemaps/
Published: 2006/2/3 21:23 • Updated: 2006/2/3 21:23
@Phatbloke

thanks for this release

Some ideas :
- add a submenu in main menu so that users will be able to add points by themselves
- permit them to add a photo and email to a point

some corrections
- title in admin index page are not translated
- one error (with mysql4.0.17) when i add a category
Error Code: 0013
ERROR: Could not query the database.
Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' '1', '2')' at line 1


marco
Published: 2006/2/4 11:39 • Updated: 2006/2/4 14:15
This has been the most fun module I've played with in a while.

I like the suggestions in earlier comments about users being able to plot points or lines. That would really add a component that would surely keep visitors on the site for a while!

This thing can really be addictive, install it when you're going to have lots of time to play around cause you won't get much else done for a while!

Matter of fact, I'm going to go mess with it some more right now!
Published: 2006/2/5 0:32 • Updated: 2006/2/5 0:35
<bump>

Quote:
Error Code: 0013
ERROR: Could not query the database.
Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' '1', '2')' at line 1


I've had this problem as well but only after I "manually" added the first category into MySql. (I believe it's because 'the 'Zoom' factor is a required field. You can either zoom in the map OR place a zero in the Zoom field and hit save).
Published: 2006/2/6 9:53 • Updated: 2006/2/6 12:40
Hi All,

Have been playing with this module and even added some hacks to it, and it seem to work super-duper in Safari, but IE on Win will not load the page!

Have a look: http://www.saltocity.dk/modules/googlemaps/

Hack made: Custom markers for some points, and another default marker for the rest. Still need to do the webinterface to change it, though...
Published: 2006/2/7 6:22 • Updated: 2006/2/7 6:22
Think I answered my own question here but thought that this info might be useful for other people aswell. It appears that the google map API is only compatible with the following browsers:

* IE 6.0+ (Windows)
* Firefox 0.8+ (Windows Mac Linux)
* Safari 1.2.4+ (Mac)
* Netscape 7.1+ (Windows Mac Linux)
* Mozilla 1.4+ (Windows Mac Linux)
* Opera 8.02+ (Windows Mac Linux)

LINK
Published: 2006/2/7 10:45 • Updated: 2006/2/15 6:37
Well, I'm using IE 6.0.2800.1106 on Win2K and it's working fine on maps.google.com but not with the module on my own site - so I guess there must be something wrong... debugging on the way...

Update:
It seems that IE in this case errors out because 2 requests get a 404 error (not found).

This must be XMLHttpRequests, and the URL's look lke this:
http://kh0.google.com/kh?n=404&v=3&n=png&cookie=fzwq1IL6UcpRBtT5wHmVMcYbSb5NxUe8mQHPeA&t=trrrrrrrrrrrrrrrrs

Published: 2006/2/7 13:18 • Updated: 2006/2/15 6:35
Can you please consider adding "To Here" and "From Here" in the info pop up window.

There is a example on this page.
http://www.econym.demon.co.uk/googlemaps/obj4.htm

Thanks


Published: 2006/2/23 16:52 • Updated: 2006/2/23 16:58
Please, can anyone tell me where can I find
"Longitude of point:
Latitude of point:
Level of zoom:
"
for my city?

Thanks a lot.
Published: 2006/2/25 7:07 • Updated: 2006/2/25 7:10
I don't think or should say don't know if google maps has any info for Romania. I was not able to zoom in very close at all. With my mapping software I use on my own computer I couldn't get zoomed in close enough to get e good long/lat reading. I used both Delorme and Microsoft but neither one of those are international versions.

If someone from Europe has mapping software for that part of the world that supports long/lat they should be able to get you that info for you. But like I said I'm not sure what parts of the world google maps supports.

Regards,
JP
Published: 2006/2/25 8:48 • Updated: 2006/2/25 8:50
:) I only want to display the satelite view. This one, i know for shoure it has, but i can't find that longitude and latitude :(. Can you help me with this?

Regrads!
Published: 2006/2/25 21:59 • Updated: 2006/2/25 21:59
well, my coordinates was good (26.83333/45.51)

And level of zoom 3-4

Thanks a lot
Published: 2006/2/25 22:09 • Updated: 2006/2/25 22:14
you can go to http://maps.google.com, switch to satellite view and browse to where you want to go. When you are happy with the view, click the "Link to this page" link at the top and look at the information in the URL. It will show the coordinates.
Published: 2006/3/1 22:35 • Updated: 2006/3/1 22:35
Hi - is there a way to link to zoom to a particular point by calling a URL, i.e. to zoom to a particular point by linking from elsewhere on the site?

Great work on the module!

Thanks
MM
Published: 2006/3/8 10:27 • Updated: 2006/3/8 10:27
Quote:
Can you please consider adding "To Here" and "From Here" in the info pop up window.


Yeah, I second that. That would be very useful for people want to visit the point!!
Published: 2006/3/14 7:30 • Updated: 2006/3/14 7:30
Some other features I would love to see in next release...

1)ability to pick different pins or colors for different catogories.

2)abillity for members to add themselves to the map in a members catogory. would be best if they could add there zip code and it would geocode there pin to the center of that zipcode (not sure if anyone would want exact location)

3)Geocoding by address in general would be great...

wish i had as much php skills as i did ideas.. lol
Published: 2006/3/16 9:14 • Updated: 2006/3/16 9:14
Hi all,

I´m trying to download the module right now, but both link aren´t working.
Is there any mirror? Thank you...
Published: 2006/3/22 15:34 • Updated: 2006/3/22 15:34
Fantastic module. This is really useful for our band. We do lots of jobs around the county so I can direct not only band members, but also the public to this great module.

One tiny problem I'm having is that the map appears a little bit too big for the page. I've tried removing the custom block above but it makes no difference? Is there a quick way to control the size of the map area? Take a look for yourself... it's under "Maps and Directions" on Epping Forest Band.

Final thoughts, yes to "Directions to this point", a list of custom markers and maps of other planets for good measure (ignore the last idea).

Daniel
Published: 2006/4/3 9:28 • Updated: 2006/4/3 9:28
Your map looks good in my browser (Firefox 1280x1024). However, you still can change the Level of zoom in the module configuration.

And yes, please add "direction to here" and address/zip function. Nice module!!
Published: 2006/4/3 15:19 • Updated: 2006/4/3 15:19
Is it possible to add a custom map when Google Map doesn't show any image?

Perhaps replace the area with a custom image at a certain zoom level?
Published: 2006/4/9 6:41 • Updated: 2006/4/9 6:41
link is broken!

http://dev.xoops.org/modules/xfmod/pr ... up_id=1307&release_id=873
Published: 2006/4/16 14:39 • Updated: 2006/4/16 14:39
Great module. For consideration for next release would be the ability to print map as per standard google map. You know, the print this page java thingy at the top.

Cheers,

Simon
www.newenglandcedarhomes.com
Published: 2006/4/22 0:10 • Updated: 2006/4/22 0:10
Any plans to move to V2 of the API?

Also, Is there a way to get a 'scale' included with the map?


Cheers,

Simon Halliday
www.newenglandcedarhomes.com
Published: 2006/4/25 20:26 • Updated: 2006/4/25 20:26
API V2 is said to be far better in performance and stability wise. Also it has got higher resolution satellite images and newly added cities of the world included in it.

Plus, V2 is 99% backward compatible, they say. In Gmap API blog says that just bay changing v=1 to v=2 it should work on most of the cases.

I have tried doing this, on maps.js in the include folder, but so far it doesn't seem to work with this module.

However if you replace the first 3 lines of following code:

Quote:

//create map

var map= new Gmap(document....



with the following :
Quote:

var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(37.4419, -122.1419), 13);


Then you will be able to get a very simple API V2 working on your site with the controls.

But this method will not integrate those cool features the module currently have.

I hope a newwer version comes sooner.
Published: 2006/5/2 12:21 • Updated: 2006/5/2 12:21
after install
it said that file is not exist

http://www.smicrotech.com/arabic/modules/googlemaps/
Published: 2006/5/2 12:35 • Updated: 2006/5/2 12:35
i click preview in broswer for the index
so it open (only by this way)

it's empty
i have no idea why
http://www.smicrotech.com/arabic/modules/googlemaps/index.php

noted
my XOOPS folder isn't the root
it's
http://www.smicrotech.com/arabic/
does it make any peoblems?

it said that the admin file isnot exist

http://www.smicrotech.com/arabic/modu ... ooglemaps/admin/index.php
Published: 2006/5/3 11:45 • Updated: 2006/5/3 11:50
try uploading all the files again.
There is a file called index.php under admin folder of googlemaps.

Also make sure, you have a correct API key from Google.
Published: 2006/5/9 9:31 • Updated: 2006/5/9 9:31