Hi,

I wanted to ask if someone makes / plans a port to drupal 7 ?
That would be great ...

4ud

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tokimeki’s picture

FileSize
8.34 KB

I port this module to D7.
this is a first version.

4ud’s picture

hi tokimeki, thank's for sharing it!

macramole’s picture

subscribing

thanks for sharing the dev version

itrain’s picture

Subscribing.

Thanks for sharing.

I would like to report a bug on 7.1 Dev.

The CCK gmap field does not allow enough characters into the field. I tried to link an address and it does not find my address because the link from google maps gets cut off at 128 characters and the link is longer than that.

I'm trying to change it myself in the module, but not sure exactly where it must be changed.

This is the link:
http://maps.google.co.uk/maps?hl=en&q=37+George+Street++Edinburgh++West+...

Please advise...
Thank You

andrenoronha’s picture

andrenoronha’s picture

ok now i see the difference!
thanks for this port. it has to be official.

:)

it would be great if we could set the exact dimensons of the map too (in pixels)

flightrisk’s picture

Or what about this one:

http://drupal.org/project/gmap

I can't use the port yet either since the data field is too small to hold the iFrame code. But maybe I'm missing something that this does with a field that makes it better than just embedding iFrame code. Can anyone tell me? Here is how I put google maps, google calendar, or any other web resource into a page:

1. Use CKEditor as my editor
2. I am an admin so I have permission to use any of the text types. Alternately, I can add

as a text tag in the editor for people I want to use iFrames 3. Create a node and add some text to the body with CKEditor 4. Click the button that says "source" to switch to HTML mode in the editor 5. Paste in any iFrame code, like the google maps generated code 6. Publish the page. I can do all that before I even download a module, let alone install it and try to use it ;)
flightrisk’s picture

Title: Port to Drupal 7 » Drupal 7: won't work at all since the link field is not large enough to handle the map html
Category: feature » bug
Priority: Normal » Critical

Any answer on this yet? I found that if I cut and past the html link instead of the iFrame link that I want to use, it works. But this method gives no control over the image size or any one of all the other options when google gives you its real code to paste in. So the confusion seems to be we are expecting to put in the iFrame code from the customized map in Google. Google also makes it confusing since they give both links on the menu web page, but when you customize the map, it is only in iFrame. I haven't tried, but maybe one of the html links inside the big string of characters would work.

millionleaves’s picture

Comment #8 by flightrisk hits the nail on the head.

You don't need to paste the embed code in here. In fact, I use this module to avoid having to explain to users how to paste the embed code. You can simply enter an address and the module will look up that address and grab the appropriate map. Even better, you can include the name of a business with a Places page as part of the address and Google will show you the name of the business as part of the map.

Also, you can change the size of the map that is displayed. Once you've added the field to your content type, the Display options give you three size options. If you don't like these options, you can open up the .module file and either add additional sizes or change the code for the existing sizes. Not ideal - I'd rather these options were stored in the database with an interface to enter custom values - but given my limited coding ability, this is an acceptable workaround.

flightrisk’s picture

A million thanks a million leaves! ;)

andrenoronha’s picture

Why isn't this 7 version on the module official page?

webadpro’s picture

I think being able to set the dimensions would be best.

webadpro’s picture

Status: Active » Needs review
FileSize
8.15 KB

Here's a modified version of this module for Drupal 7.

Rather than having 3 predefined sizes & if someone wants to change needed to alter the module, I have added the possibility to alter the height and the width of the map in the formatter settings.

Please review.

----

As for the textfield not big enough, there's two solutions.
1- Change textfield for a textarea
or
2- Create two different widget element, one textarea and one textfield, and let the site admin choose which one he would like to use on its site. But if he chooses textfield, any iframe wouldn't be available, and probably a field_validation could notify the user if an iframe has been entered in the field, so simply use the url rather than the HTML Code.

My 2 cents.