Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
You should email Rob and see if he has any ideas. he’s a cool dude.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
This is a fantastic plugin – exactly whatI was looking for.
Unfortunately I run everything through firefox so it all worked brilliantly but it has been pointed out me that now my site can’t be viewed in IE (cannot be displayed OperationAborted) but works fine if I disable the plugin.
I know cap_nemo has pointed this out and come up with a solution but I’m a bit clueless when it comes to code so could someone tell me how to implement the solution? I did try bracketing the whole of the existing plugin with the code below but it gave me a parse error:
txp/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 1
The above errors were caused by the plugin:rss_google_map
Thanks!
cap_nemo wrote:
I just found a HUGE setback. The google maps JS seems to totally hose up IE. I’m just now checking it. Any ideas? It looks like it’s also doing it on your about page.
UPDATE 2
I just fixed the IE issue. IE was trying to load the map before it was completely drawn, i think. Anyway, per this page’s reccommendation i added an additional function to the JS and it seems to work in IE now… SWEET!
window.onload = showMap;
function showMap() {
... all the code ...
}
Now, the only problem left is the multiple points and the incorrect address displaying!
Offline
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
Hey Gidden!
I see your problem. The code that actually fixes the IE bug is part of the javascript that the plug-in generates. Towards the bottom of the plugin you’ll need to add the showMap function, but it’s added as part of the markup generated by the plug-in. Check out this page to see how the javascript should look.
Please let me know if this isn’t clear. :)
Offline
#34 2006-05-14 10:57:49
- shanghai
- Member
- Registered: 2006-05-09
- Posts: 20
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
hmm, can’t you use this plugin for showing other maps than US locations? any way around to use longtiude – altitude reference points? as I would like to show some maps for different countries i.e.
another thing, how do you find the reference points from yahoo maps, as I can’t find any locations anywhere else than by looking at the url adress field in the browser … thanks!
Offline
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
cap_nemo – thanks for the quick response – it works brilliantly! Very impressive site by the way. Now off to wrestle with CSS Columns!
Shanghai – This may not be the best way, but I just use the cityfield as the international town and the state field as the country and it plots – I don’t think yahoo can do international addresses but for cities it seems fine.
If you want to get Lat & Long from Yahoo directly just type the following in your browser address bar:
http://api.local.yahoo.com/MapsService/V1/geocode?appid=YahooDemo&location=
followed by the town and country separated by commas and it returns some code including the Latitude and Longitude. I hope that is some help.
Last edited by giddyn (2006-05-14 12:05:15)
Offline
#36 2006-06-14 00:32:15
- inakit
- Member
- Registered: 2005-09-30
- Posts: 12
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
Hello , Fantastic, but I do not how to include a post from barcelona, spain
Do you know how to include spanish adress
Thanks very much
Offline
#37 2006-07-08 15:40:35
- ice
- New Member
- Registered: 2006-06-26
- Posts: 8
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
rbe wrote:
just go to the panel -> domains -> manage domains -> pick your domain and click edit… uncheck “Extra Web Security (Highly Reccomended)” and save it. All should be well after that :) Good luck!
Had a similar problem saving but could not get access to any security setting but through phpMyAdmin managed to modify the code direct into the database. Not ideal granted, but it works.
Offline
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
So here’s a tall order, but maybe someone can just point me in the right direction. I want to create an effect like local.google.com. I want to be able to have articles on the left side of the map and when the visitor clicks the title of the article it chooses the point on the map. Has anyone implemented something like this (TXP or other)? I would be interested to read about how to accomplish this.
Offline
#39 2006-09-04 03:57:03
- qreus76
- New Member
- Registered: 2006-09-04
- Posts: 4
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
I’ve been trying to get the hack to displaying one marker from the current article like cap nemo (not from the whole category or categories) . I can’t seem to view his solutions. Can anyone help?
Offline
#40 2006-09-06 04:13:22
- qreus76
- New Member
- Registered: 2006-09-04
- Posts: 4
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
anyone?
Offline
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
@qreus76 —
Here’s a tutorial about creating a Google Map with a sidebar, though not for TextPattern in particular.
The techniques outlined require you to create a text or XML file that contains the Google Map data. You could do that by hand, but that would be silly if you’re maintaining the website in TextPattern. Instead, you might be able to modify rss_google_maps to create map data on the fly. I wouldn’t. Look at a technique that I used to create map data using page templates and article forms:
Last edited by adr (2006-09-06 16:40:26)
Offline
#42 2006-09-06 21:45:54
- qreus76
- New Member
- Registered: 2006-09-04
- Posts: 4
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
Thanks adr but I was looking more for somthing like cap_nemo’s solution like Here . I just want my viewers to see one marker that is associated with the current article that’s being read. Not a marker for every article in a category. I’m posting directions to locations for events that are comming up. Each event (article) may have a different venue and location. When the reader click on the upcomming event I want them to see a map to the location of that one event not all of ‘em.
Also, this is to be done by using simple custom tags filled with addresses (street, city, state, zip) not the geocode. I’m trying to make it as simple as possible for the “not so savy.”
Can you help?
Offline
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
qreus76
Have you thought about having an article list (in a column) (your events) (under section “events”)
Then each article has its own google map. Each time you click an article, the map would have to reload instead
of just move, but it would be one way to handle the problem?
Or, you could ask someone to write a solution for multiple locations/events that is an apdatptation of the plugin, but be prepared to pay for the outsourcing :)
If you are doing this for a client, then it should be a non issue. If you are doing it as a favor, I’ve found a lot of folks willing to pay for a little better functionality.
That’s open source for ya :)
Good luck.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#44 2006-09-07 02:43:12
- qreus76
- New Member
- Registered: 2006-09-04
- Posts: 4
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
Yes, that’s the way I’m doing it. I have an article list of my events under section “newsevents”. I thought that each article (upcomming event) was suppose to have it’s own google map pulling from the addresses from the custom fields in that article. It seemed cool at first because all of my events were located at one place (the church). But when I created a new upcomming event to be located at a hotel (women’s conference) I found that I still was seeing the marker at the church. When I zoomed out, I saw that both markers were on the map (church and hotel).
When I viewed the source I realized that the map was looping through all the articles in the section and putting all the addresses on one map. The reason there were only two markers though, was because I believe all the upcomming events that had addresses to the church (one location) were overlapping and the hotel marker (different location) was by itself. I found that when I put more events in the list with different locations, all the locations were being shown on one map (multiple markers). This will only confuse reader when trying to get directions.
I guess, the best way to explain what I want is to look at cap_nemo’s example on the website that he did for a church. I want to be able to do exactly what he did and from reading this thread I was under the impression that he was able to do it by hacking the rss_google_map plugin.
Offline
Re: [plugin] [ORPHAN] rss_google_map - display articles on google maps
I’d write either Wilshire or CapNemo to get an idea on this one :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline