Main | Version 1.1 »

May 13, 2008

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54fa7efe7883300e5523af22e8834

Listed below are links to weblogs that reference GeoSpatial Simple 1.0:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Pizza

Is there a problem while creating a new GeoSpatial Simple entry with Internet Explorer 6.0?

If I click on the check box "Include a map with this entry" the map and the fields needed to report the position doesn't appear. The lower ie status bar show "Error on Page".

On the other hand, if I add a new entry with Firefox 2.0 both on Windows and Ubuntu the map and the needed fields appear and let me set the position.

In the end, even if I can entry the position with Firefox the map doen't appears in the preview normal entry view... but that's andother story.

Bryan Tighe

We're looking into your problems with IE6. Can you explain in detail what you were doing when you received the error?

"In the end, even if I can entry the position with Firefox the map doen't appears in the preview normal entry view... but that's andother story."
- did you use the correct tag in the template to display the map? The map won't just show up, you need to edit your templates first.

MadDog

Hi Bryan,

I exhibit the same issue with IE6 vs. FireFox, but also can;t get a map to appear in either envirnment. The check box is there under IE6, but when you check it, you don't get the additional map/field display that occurs correctly under FireFox. FWIW, if you try to check the box and save the entry under IE6, it just resets the checkbox to unchecked. Not that it would matter anyway, but just an fyi for you. I didn't even know the additional info would appear until I looked at it under FireFox. Probably a good idea to document that with screen dumps when you're able. (I'm planning to do a case study for the client project I'm working on that will utilize this and other plugins, so I'll be glad to do it and link back once my implementation is working. (For example, I'm not really utilizing the standard MT Header, as I'm overriding everything with custom CSS, so maybe that's an issue. I went ahead and placed the in the Header file, but also in the head section of the index.html template as well as the Entry archive template just to make sure during testing.

And maybe, Pizza and I both have the same problem. I'm assuming that we need to enter the tags in the Entry Archive Template, only because the individual entry page sidebar is the place where I want to show my map. But only MT includes and not MTEntries is used on the Entry archive template. Should the tags be placed on the Main Index (index.html) template instead, and then specify the location of the map with a CSS div a la "map_canvas" on the Entry archive template? Can you shed some light here? Maybe I'm doing or not doing something easy, but I'm a bit confused on where the tag info needs to go. Thanks.

MadDog

Duh. Just had a syntax issue was all. The following still occurs, fyi:

- IE6 config map problem still there. Everything seems to display fine in FireFox.

- I'm getting the "Map with All Entries" map to display fine at the top of the blog Main Index page, which also summarizes all individual entries. However, on the individual Entry archive template, which shows the Entry detail, and is where I'm inserting the code to display that particular entry's map, the individual Entry page instead shows all the blog's entry maps in sequences (currently 3, which is the amount of entries I have so far). Should I be using something besides the "MTEntryGSMap" tag between "MTEntries" tags to show JUST the map for that entry, and not all 3? I tried using "MTIfGSMapped" similarly in fashion to the Map With All Entries code instead, and it didn't make any difference. Thanks for the help, and thanks for the nice plugin.

Jonathan Rawles

OK. I tried installing on MovableType 4.1. I uploaded the files to mt and mt-static. I put them in the directories, as they are in the package. THat seemed to work fie. When I reloaded mt.cgi, I got the "Time to Upgrade" message. I hit OK, enter my password, and it seemed to start. However when the first process "Upgrading table for location records..." came up, I got the following error message:

Error during upgrade: failed to execute statement CREATE TABLE mt_location ( location_id integer NOT NULL PRIMARY KEY auto_increment, location_address varchar(1000) NOT NULL, location_bubble varchar(1000) NOT NULL, location_custom_pik varchar(255) NOT NULL, location_display varchar(255) NOT NULL, location_lat varchar(255) NOT NULL, location_lon varchar(255) NOT NULL, location_show_controls varchar(1) NOT NULL, location_show_pik varchar(1) NOT NULL, location_zoom integer NOT NULL ): Too big column length for column 'location_address' (max = 255). Use BLOB instead at lib/MT/Upgrade.pm line 2003.

I'm using MySQL, is this a problem with the installation, or my MySQL database? It looks like the database doesn't like the commands it is being given. Any thoughts?

Bryan Tighe

@ Jonathan Rawles,
I think you may be using an old version of MySQL. What's your version?

@ MadDog, can you post your template code? Then I would be able to diagnose your issues better.

We're still looking into the IE6 issues. Is anyone getting any Javascript errors when the page loads in IE6?

MadDog

Hi Bryan,

Thanks for the reply. My problem is occurring in the Entry archive template, which is responsible for displaying individual entry detail. I have the following div in a sidebar column:

div
MTEntries> /MTEntries
/div

I have 3 entries total currently in this blog, and have specified maps for all 3. However, on the individual detail page specified by the Entry archive template, ALL 3 maps are displayed one after the other down the column, rather than just the one for that individual entry. If it matters, the main column only has includes instead of MTEntries via the following code for displaying the main entry content:

$MTInclude module="Entry Detail"$
$MTInclude module="TrackBacks"$
$MTInclude module="Comments"$

Also, I have MTGSHeader/ in the head section of this page, since I am not using the MT Header include due to having custom CSS define my header area.

As to IE6, even though I have to use FireFox to build the entries in order to get the map display data, finished pages show without Javascript errors under IE6.

MadDog

Sorry Bryan, there should be opening and closing tag marks around all the code in my reply; thought the "" and "" manual conversion text I used would create the symbols in your comments window.

MadDog

Doggone it Bryan, I just realized the comments window eliminated other code . . . this is the code that exists in the sidebar:

div
MTEntries
MTEntryGSMap width="100%" height="250px" /
/MTEntries
/div

(Assume there are brackets around everything.)

Sorry!

Bryan Tighe

MadDog,
The sidebar widget you've made will make all of the recent blog posts show up. The point of that widget is to show a summary of everything you've posted recently, no matter what page you are looking at (index, archive, or individual entry). So, that's why all 3 of the maps are showing up in your sidebar, because it wants to show all of the recent posts.

To get the results that you want, you can do one of several things. There is a way to limit the MTEntries tag to just the post you want, although you will need to find the right variable that pulls in the id of the post. Or, you could put the map in the Details or Summary template and use CSS to position the map to where you want it to go.

I hope that helps. Basically, the templates are behaving the way that they are supposed to be working, but clearly we haven't done a good job of documenting how they should work!

Jonathan Rawles

Pardon my ignorance, I haven't worked with databases much. MT-check.cgi says I have DBD::mysql version 4.006. In phpMyAdmin, it indicates that I have MySQL 4.0.27. Should that work OK? Thanks!

MadDog

Hi Bryan,

After thinking about it, I didn't think there would be a failsafe automatic way to specify the entry ID each time, so I went ahead and redesigned the Details template to basically act as the Entry archive template was before, and the Entry archive template has returned to its barebones default. Only problem is, all 3 maps are still pulled into the sidebar. Seems like I basically just moved the same occurrence one level lower in the template hierarchy now. Ideas?

MadDog

One other interesting tidbit Bryan . . . if I put the widget in the main column AND the sidebar of the Details template, sn interesting thing happens: both IE7 and FireFox correctly display the individual entry's map in the main column. But on IE7, THAT entry's map is removed from the sidebar (although it keeps a "blank" region available). On FireFox, all 3 entries' maps remain visible in the sidebar as well as in the main column.

Jason Cook

Bryan,

Great plugin!
Feature request (unless it's there and I'm missing it):

It would be cool if a user could embed a Google 'My Map' instead of a plain-vanilla Google Map, particularly if you wanted to highlight a number of places in the same general area. (Say, for example, that you had a blog post about your favorite pubs in Oxford -- I wouldn't want one pushpin in the center of the map, rather, I'd like to have a map showing a number of pins with mousover content like photos, pub name, etc. -- all very easy to make with My Maps)

Is there any way to hack this functionality into the current plugin?

thx
Jason

MadDog

OK Bryan, this is strange. I started to look at the code in light of the cross-browser behavior, and noticed that the plugin code insertion within the main column was not only behaving properly (i.e., only one map being displayed, and tied to THAT particular entry), but that code insertion didn't exist within a MTEntries tag on the Details template, since there is no standard MT Entries tag on that template. So I removed the bounding MTEntries tag on the map instance in the sidebar. And voila, here's what happened:

- On FireFox, the sidebar map displays just fine on each respective blog entry.
- On IE7, the physical area is set aside but blank in the sidebar if I also have a map specified in the main column, but if I remove the main column map, the sidebar maps shows up just fine.

Removing the main column map has no effect on the sidebar map within FireFox.

So at this point, I'm not sure what's going on, but MT Entries seems to be the culprit, which is odd since it was deemed to be required.

If you want me to send the code snippets to you or otherwise look at the output on the page, send me an email. I just can't post it here because the client wants to keep the site relatively private until launch.

Bryan Tighe

@ Jonathan Rawles
The latest version of MySQL is 5.something. You will need that. I can probably make it so that the next version of the plugin is more backwards-compatible with older versions in case you are on a shared host and not able to update it.

@ MadDog - I now understand your problem. Yes, the MTEntries tag IS REQUIRED. However, if you use the Details template then that is assumed to be WITHIN an MTEtnries tag (it's included in another template). Thus you will not see the MTEntries tags in all of the templates. If you do use an MTEntries tag, like you did in the sidebar, then it assumes that you want to show all of your recent posts on that template. That was the original concept behind that sidebar, to show all the recent posts no matter what page you were actually on. I hope that helps and makes sense.

As for the maps not showing up- IE has issues with more than once instance of Google Maps on a page at one time. Expect weirdness. (That's a general rule with IE and the entire internet, by the way.)

@Jason Cook - I'm working on another version of this plugin to allow you to show multiple locations per one entry. My Maps could be a cool (and easier) way of doing this than the way I was planning, so I'll look into it. It may take time however.


And to everyone, hopefully I'll have a new version out sometime in the next few weeks. Google just unveiled a new maps view which turns the map into what you would see in Google Earth (but in the browser). That and more should be included in the next version.

MadDog

Terrific Bryan, makes complete sense now that you explain it that way. And I'm clear about IE7 and multiple instances of the same map. Shouldn't matter in final operation anyway, because I was just doing it as a test. Thanks for the help!

Jonathan Rawles

Well, I don't know if my host plans to upgrade. I guess I'll try another plugin until then. Thanks very much for your time!

JimAtWCU

Bryan -

Wonderful plugin! Minor problem, probably me not reading the docs throughly enough. Had no problems installing, activating, and modifying my templates. Map shows up fine, but the the popup box on clicking the pik does not come up.

All I added to the templates was (sans the tag brackets)...

MTIfGSMapped
MTEntryGSMap style="width: 100%; height: 300px; border: 1px solid #000000; margin: 5px;" /
/MTIfGSMapped

...and the generated code looks normal, except I do not see the code for the popup, the usual Listener that you see in the GMap API. Point me in the right direction, please.

Jim

Bryan Tighe

Version 1.1 is now live, I made a post for that.

@JimAtWCU - originally the MTEntryGSMap tag was not actually supposed to show the balloon popup, but a lot of people wanted it (and seemed to think it should just work). So that's in the new version.

@Jonathan Rawles - the new version should hopefully fix your problems. If not, let me know and I can probably make a quick fix for you.

MacDiva

I just installed GeoSpatial 1.1 and the update seemed to go fine. When I try to Select a Pik for an entry, though, I get the following error message:

No such file or directory at /home/(site)/public_html/cgi-bin/mt/plugins/GeoSpatialSimple/lib/GeoSpatialSimple/CMS.pm line 33.

I double checked, and CMS.pm is where it should be according to the path above. Line 33 reads:

opendir(THISDIR, $dirpath) or die "$!";

I'm not sure what to do from here. Help? Thank you.

Bryan Tighe

@MacDiva - When you installed the plugin, did you copy the appropriate folder over to the mt_static/plugins/GeoSpatialSimple directory? This folder contains all of the map pik images, and that is why you are getting an error. CMS.pm can't find the appropriate folder with the images in it.

Hope that helps, -Bryan

Bryan Tighe

@MacDiva - Also, you need to upgrade to version 1.1. There was a bug related to that problem that you may be seeing that was fixed in 1.1.

Kris

@MacDiva and Bryan:

Try adding the StaticFilePath directive to mt-config.

I got the same error, and it seems like GeoSpatial Simple needs that configuration variable to work.

It would be nice if the plugin had a default that worked well in the absence of that configuration directive.

Kris

Mike

I installed the plugin. Added the GMaps API. Added tag in header. Immediately, when I view any pages with that header code (an entry, for example), I get an error message:

Smarty error: [in evaluated template line 12]: syntax error: unrecognized tag 'mtgsheader' (Smarty_Compiler.class.php, line 580)

I'm using MT4.2. Please help!

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Blog powered by TypePad

Donate $

If you like it

Tip Jar