So one of the main features my boss told the clients wanted was to have 2 different maps side by side, and to be able drag bar between them and... Who's Online | Find Members | Private Messages
My Journal
Quests. | Journs. | Gen. | News | Quiz | Links | TV | Music | Movies | Games | Sports | Sug. | Lit. | Jokes | Artcls. | Newb | O.S.
From the Journal of Hael | mood: Good

More super awesome map stuff

Back to Thread List
Bottom Last Post

14 days ago - Tuesday 6/4/19 - 9:06:38 PM EST (GMT-5)
So one of the main features my boss told the clients wanted was to have 2 different maps side by side, and to be able drag bar between them and swipe from one to the other. I'd seen it in some webmaps before but I'd never programmed anything like it. And I couldn't find any guides or samples for it either. I thought it would take weeks to do. But yesterday, after about 10 hours of work, I actually figured it

Then, before I tell my boss, he tells me that a phd student will be joining the project whose task will be that exact thing. He knew I was looking into it and said he'd tell her to ask me about what I found before she started. Do I tell her? Do I tell him?

14 days ago - Tuesday 6/4/19 - 9:11:47 PM EST (GMT-5)
I mean mine is very rudimentary, without any of the tools and features we want in the end. Also I'm sure a lot of my code is improper, since I had to set it to debug mode to get it to load properly.

Also, you may have noticed it loads kind of slowly... sometimes you'll swipe and just see a big white space, which is gradually replaced by the basemap, which is then gradually replaced by data map. So I'm sure there is a better way to do it.

Regardless of how it works out, I'm proud of myself. Usually when I have a task, I just google it and can find people giving instructions on how to do similar tasks. This is the first time I can think of where I had to work out in my mind exactly how each step would work and experiment until I figured out how to accomplish that.

(also I hope this new phd student is the girl I worked with in classes last year that I know is part of this department)
14 days ago - Tuesday 6/4/19 - 9:15:04 PM EST (GMT-5)
And please tell me if the maps load slowly for you. I need to know if that's my computer, the data, or the server.

Also you may notice that when you swipe from left to right the map shifts slightly... labels and features will abruptly move a little bit. I spent hours trying to solve that and I've made it much better but never completely figured it out.
14 days ago - Tuesday 6/4/19 - 9:46:29 PM EST (GMT-5)
It's a little bit slow, but honestly more like "if this were made by a professional company I'd think it were clunky" slow, and not "you made this in 10 hours having never done it before" slow.

I notice that when I swipe left and right, it's less dependent on whether I'm going L -> R or R -> L, and more dependent on how much data there is to load for the area. In low concentration areas, it loads faster regardless of which way I'm swiping (which I would expect).
14 days ago - Tuesday 6/4/19 - 10:14:23 PM EST (GMT-5)
Yeah, I've been having speed issues since long before I started on that feature. I'm trying to figure it out if it's because I'm using codepen instead of our own server, or because the data type I'm using isn't optimal, or because my computer is sh*t. but if it's slow for you, too, then it's probably not (just) my computer.

Still... do I tell him what I've done?
14 days ago - Tuesday 6/4/19 - 10:31:45 PM EST (GMT-5)
Yes, I think you should at least bring him what you've done. Even if it only ends up being a starting point, it's progress beyond what he had before mentioning to you (which was sort of zero).
14 days ago - Tuesday 6/4/19 - 10:34:33 PM EST (GMT-5)
Okay, i'm on my phone
The blue takes at least three times longer than the red
Like when both sides are blank the red info takes about 2 seconds to fill the blue takes at least six for most sections and a couple times close to 10
Once they've already loaded they're solid though and you can swipe back and forth with no loss
Unless you go past the edge of data stuff then it resets to blank and you have to wait again (same amount of time ~2sec red/~6sec blue)
14 days ago - Tuesday 6/4/19 - 10:39:05 PM EST (GMT-5)
I obvs have no idea what i'm talking about
I just slid the map about, then the slider, and either way the blue took a long time but not so long if i needed the info i'd quit

Also, bird is pretty spot on about telling the boss guy about progress.
14 days ago - Tuesday 6/4/19 - 11:54:15 PM EST (GMT-5)
That's actually exactly what I'm looking for. I still don't understand why one would take longer than the other since they come from the same service, but at this point, I guess it's not my job.
13 days ago - Wednesday 6/5/19 - 9:18:32 AM EST (GMT-5)
It's interesting that sometimes it seems to have no delay at all in filling in the colors, but other times it does take a while. I can't figure out what triggers the difference- - I can slide back and forth over Washington DC several times, and the fill is instant for both blue and red. Then I'll go back and slide the bar across the bay and then back to the left, and it takes a while for the blue to fill.

Maybe it's triggered by crossing the state border or something like that.

13 days ago - Wednesday 6/5/19 - 9:23:40 AM EST (GMT-5)
...being in debug mode might also be contributing to the speed issues, wouldn't it?
13 days ago - Wednesday 6/5/19 - 11:25:02 AM EST (GMT-5)
On Wednesday 6/5/19 - 9:23:40 AM CowDung wrote:
...being in debug mode might also be contributing to the speed issues, wouldn't it?

That's certainly possible. But even loading just the maps with no other features in the map viewer at the site they're hosted at, they load and fill in pretty slowly. That makes me think it's an issue with the data. I tried removing all the data fields I wasn't using but that didn't improve it too much.

You need to be logged in to post a reply

New to YT? Create a Free Account ~ Have an Account? Log In

Back to Thread List