Geocoding Etc.

Wednesday, May 03, 2006

Publishing Maps to a Static URL

I know a number of you would like to have maps you could update, or have a static URL for the "Save Map to Web Page" feature on the batch geocoder. One way to take care of this is by using your own page with an iframe that includes the map you want. Here is a simple script that demonstrates:

<style>
body { margin: 0px; }
</style>
<iframe src="http://www.batchgeocode.com/map/?i=nw_kiteboard_shops"
frameborder="0" width="100%" height="100%"></iframe>

(Just replace the src="" part with your own map URL)

This way you can continue to update your map, and host it on your own static URL. Hopefully this will work for many of you, for others I am sure you would rather have some sort of direct edit capability on your maps. This is coming believe me, just sit tight!

UPDATE: You can now override the default css template (http://www.batchgeocode.com/default.css) by passing in your own CSS in the URL, ie:

http://www.batchgeocode.com/map/?i=nw_kiteboard_shops&css=http://www.batchgeocode.com/default.css


Just put your own css value where "&css=" in the URL. This will let you customize the colors and design to match your own site!

30 Comments:

  • This script works with IE 6 but doesn't seem to work with Firefox.

    JS

    By Blogger John Schaefer, at 4:32 PM  

  • Hmm I tried it in Firefox 1.5 and it worked great. Maybe older versions don't like that I didn't put in any <head> or <body> tags. Here's a version with all the proper tags:

    <head>
    <style>
    body { margin: 0px; }
    </style>
    </head>
    <body>
    <iframe src="http://www.batchgeocode.com/map/?i=nw_kiteboard_shops"
    frameborder="0" width="100%" height="100%"></iframe></body>

    By Blogger pkh, at 10:33 AM  

  • how do you update your list in the new site. we posted ours and now some of the information has changed. Note: I am not a site designer I just need to update a distributor list.

    By Anonymous Anonymous, at 11:03 AM  

  • I just used a simple frame coding and inserted the map in the frame and it seems to work.
    http://www.w3schools.com/html/tryit.asp?filename=tryhtml_frame_cols


    However, I counted my orange dots and they do not number the number of places found by the geocode.

    By Blogger Vacations-Abroad.com, at 6:36 AM  

  • Hereford - check to make sure when you run the geocoder that all the points are geocoded (it will say at the end how many were found.) Ie: 100/100 or 90/100.

    If some can't be geocoded the first time, check the address to make sure its a good one.

    By Blogger pkh, at 9:11 AM  

  • When I save as web page and try to print or export it, or anything, all I get is a little tiny piece of the map that is showing. I have tried everything I can thing of to get the screen to print and save it as a bmp or jpg but just keep getting the upper corner. How to to capture what is on the screen?

    Thanks. I'm desperate.

    By Anonymous Lisa, at 1:19 PM  

  • Lisa - printing output isn't great in most circumstances. You could try the Google Earth output you might have better results.

    By Blogger pkh, at 9:10 PM  

  • I have created multiple maps for the same location, but I need to make a few minor changes. I'm assuming that once the web page is posted, there is no going back, correct?

    So I tried to try to start fresh and make a whole other page but the geocoder is not working. Is it due to the fact that I have already created similar files and the geocoder only allows so many?

    Last question: How do i find my URL for my map and is it possible to personalized it to something more legible instead of misc letters and numbers?

    By Blogger anh, at 9:44 AM  

  • anh - you shouldn't have any trouble creating a new map web page with the same data. try it again...

    As far as hosting the map underneath your own (more legible) URL, read the article above. The trick is just to ceate your map, then host it inside of a frame on your own web site.

    By Blogger pkh, at 10:03 AM  

  • I have the same problem as Lisa. I need the information below the map and the map to print out completely. I'm also in need of the map to have a demarkation method (i.e. numbers, letters, etc.) to show the viewer which address goes with what point on the map. I'm equally desperate.

    By Anonymous Anonymous, at 2:35 PM  

  • I'm the person with the same problem as Lisa. I've found that printing a zoomed-in map will allow for a complete printout. This is only a work around for me, but it still good. Thanks to whomever is doing the review and work on this problem. If this were able to print completely a full size map, I'd gladly donate daily.

    By Anonymous Anonymous, at 6:44 AM  

  • Are we only allowed to have up to 100 links or is there a way to have more?

    By Anonymous Anonymous, at 2:53 PM  

  • You can use the Google Map output that doesn't have the same 100 point limitation as the Yahoo Map.

    By Blogger pkh, at 3:34 PM  

  • I guess I don't understand how all of this works. I had a google map that had about 3000+ locations and was looking for an easy alternative to it. This site was great in identifying the LNG LAT for me and quickly...but I'm not sure what the longterm purpose of this site would be.

    By Anonymous Anonymous, at 5:38 PM  

  • Got everything to work on my site beautifully...except for the size. Its too wide, and I would prefer to have the URL resize itself to fit within a specific table area of 430px wide.. I don't write code..Any ideas on what resize code to include that won't produce scroll bars?

    By Blogger bsygrrrl, at 11:52 AM  

  • While learning to use geocoder, I made a small map for demonstration purposes. I punched the button to make an url thinking that I can save the file for later. Did I make a file on your web site and is it available to everyone? Unfortunately, I didn't copy down the URL. I also don't see a why to delete the url/map.

    I like your tool and hope to use it. If I use personal addresses will they be available to the whole web?

    Gary

    By Anonymous Anonymous, at 11:01 AM  

  • Gary -
    The URL will not be published anywhere, its yours to keep or distribute. If you don't access the page for 2 months it will be automatically deleted.

    By Blogger pkh, at 3:21 PM  

  • After you create a static link, how can you edit the data without creating a new map (which will create a new link)?
    Thanks,
    Rusty

    By Blogger Rusty, at 3:57 PM  

  • Rusty - the idea is you create a new map and then update the IFrame SRC on your page, but the URL to your page (the one containing the IFrame) never changes.

    -Phillip

    By Blogger pkh, at 5:20 PM  

  • When I use the "save map to a website" feature, the link works as an email, but when I post it to my webpage, the link brings me back to the first page, the one where you enter data. Any suggestions?

    Thanks...and I love your site.

    By Anonymous laguz, at 10:46 AM  

  • I'm trying to create a static url and I get the message:

    Notice: Undefined property: stdClass::$mapRS in /home/dax/public_html/batchgeocode.com/map/index.php on line 42
    test

    I'm not sure what I'm doing wrong. Can you Help!
    Ann

    By Blogger Ann, at 8:26 AM  

  • Anh - can you send me the URL and data you used to my email? pholmstr@gmail.com

    By Blogger pkh, at 8:45 AM  

  • I was hoping I could copy or export my map to excel but there do not seem to be any options to do so - please help.
    KW

    By Anonymous Anonymous, at 3:17 AM  

  • May I take a screenshot of the map and use it as an image on my website?

    By Anonymous Anonymous, at 12:45 PM  

  • Hello,

    I use BatchGeoCode.com and get the result of LAT/LONG to my records. When I check, I found that some of them are wrong.

    For example, a record with good street info in Columbia is given LAT/LONG of somewhere in Tennessy USA.

    I'd like to know if there is a database that has range of LAT/LONG per country that I can download so as to detect against this type of error.

    Thanks in advance to let me know

    NS

    By Blogger NS, at 9:34 AM  

  • I am getting the same error as Ann Undefined property: stdClass::$mapRS in /home/dax/public_html/batchgeocode.com/map/index.php on line 42

    Can someone help fix this?

    By Anonymous Anonymous, at 9:16 AM  

  • This an excellent service. However, I want to plot the home addresses of students from around the world. We have had ca 50/year for 16 years ca 800. Can this geocoding be expanded to this number and coveringthe world, not just US and Europe.

    By Anonymous CVH, at 2:51 PM  

  • How private is this, and can I lock other viewers out? I mapped club addresses and the other members don't want the addresses available in a format like this, just for club use.
    Thanks!

    By Anonymous Anonymous, at 11:50 AM  

  • Excellent work!!! Was easy to implement only thing my client is requesting is that when you click on a marker you currently get the details and if you click that Image or map it goes currently to our home page but they would rather have it click to driving directions functionality when clicking the details map or image any ideas?

    By Blogger Kinetic, at 9:50 AM  

  • I don't get it.
    I said save map as "fa".

    For my example, in my iframe do I put in
    src=...?i=20digitLongNumber or src=...?i=fa

    thanks

    By Blogger carterson2, at 9:23 PM  

Post a Comment

Links to this post:

Create a Link

<< Home