Welcome, Guest.
It's March 19, 2010, 10:26am.
Please login or register.
Home Page New map controls
SeSco    Technical Secrets    The Main Site (it's really a wiki)  ›  New map controls Moderators: Admin
Users Browsing Forum
No Members and 1 Guests

New map controls  This thread currently has 56 views. Print Print Thread
1 Pages 1 Recommend Thread
Admin
January 26, 2010, 9:58am Report to Moderator Report to Moderator

Ctrl-Alt-Del-Aye-Right!
Admin
Posts: 608
One of the advantages we have with our site's wiki code over Wikimedia is that it offers an embedded map.

Unfortunately, this was written by a relatively clever programmer who used a whole bunch of clever tricks that were over my head, and he has since disappeared, but was quite "positive" regarding copyright and changes to the code module he provided. I'm also quite rusty on the unique map coding, since he had promised to deliver a number of the recent features, but didn't, so I hadn't kept up to proper speed on the API changes. I will have to buy some shares in midnight oil.

Since I contributed a line or two of the code way back at the project start, I'm "contributing" a few more.

As of today, our maps now have the more advanced pan and zoom control that the official Google Maps site has had for months, and the map type controls have been updated too, with the "labels" option that pops up under the Satellite button (top right corner) and the addition of the Terrain button to the options.

I still have to see if I can disassemble the code and modify it further myself, but it would be nice to add the Google Earth option, which would allow the embedded map to be viewed using this application, rather than having to open the complete Google Earth application in addition to the browser.

Maybe one day

I've noticed another difference, unrelated to the embedded map, and which may have been an bug somewhere else - this relates to the map on the Wiki page provided to find the lat/lon/NGR of any point of interest (this single map is unrelated to the embedded maps, and is produced by a different code module).

Previously, it wasn't possible to show the whole map inside the bordered area it has to displayed within, meaning it had to be scrolled to show the whole area it covered.

Although I could define a larger area, it refused to extend too the full height I requested.

Never one to give up, I tried increasing the height after making the changes noted above, and was both surprised and pleased, but mystified as well, so see that the area expanded to the full height commanded, and showed the whole map together with the three lines of code needed to embed it.

Wonders never cease
Logged Offline
Site Site Private Message Private message
1 Pages 1 Recommend Thread
Print Print Thread

SeSco    Technical Secrets    The Main Site (it's really a wiki)  ›  New map controls

Thread Tags