Closed rasagy closed 7 years ago
the following was made using the mapbox online editor. However, I wasn't able to get the same result using mapbox studio (since online editor projects will become read only as of 31st Jan).
Is there a quick way to migrate to studio (keeping markers and image files in pop up as it is ) using geojson or kml files.??
@Vvipasha the online editor is no longer maintained and should not be used. Unfortunately there is no way to migrate from this to Studio as they are incompatible technologies.
Playing with the color schemes and point plots.
@planemad Is there a color gradient tool to apply on an area or a line in the mapbox studio?
@aritrosaha gradient colors are not yet supported in Studio
@mapschool/infdpg15 please share the progress and blockers you are facing so @rasagy and I can help out. We're looking forward to some great walkthroughs.
Aritro Saha, Amrutha Working on the dimensions: type, source, intensity
I TOUCH TO CONNECT
Lines representing dimensions- material, surface, sunlight, comfort WIP- experience, safety
@Amruthavijaykabadi looking very interesting. It helpful to write a text legend when planning the style to help you think in terms of how to communicate the visual grammar.
@pratyaksha01 Do share a text legend of what the line styles and color represent
@jerryjoseph208 @ananth22by7 @diptigarima this is looking great! Think about how you can guide the journey for a user, how does one know where to start?
You can also see how you can bring the positive and negative attributes of the surroundings using subtle colors on the basemap.
@planemad We are looking into how the user can be navigated through the journey.
We had already tried to bring the positive and negative attributes of the surroundings through the dotted lines on the path. Do let us know if the same is not working.
Updated the earlier version with legend and intensity details on hover.
https://jerryjoseph208.github.io/smells-of-peenya/
var altT = feature.properties.location; var url1 = feature.properties.url; popup.setLngLat(feature.geometry.coordinates) .setHTML(feature.properties.source + " <br> <b> <center> <h2>" + feature.properties.location + "<img src = url1>") .addTo(map);
ps : while debugging, the console shows fetching the correct url under the variable url1
@planemad - (For the smell assignment) There's an issue when you zoom in/out - the areas with grey dots show only in a certain range of zoom - at least for us. Is it the same for you guys too?
Also the grey dotted polygon for an area (the area in front of Platinum City Club House) isn't showing up at all, which is strange because all the areas were showing fine before publishing.
Hi @planemad @rasagy , We are currently working on the text legend. Meanwhile we introduced icons for different types of TASTES. Along with colors(shades & tints) for the intensity of that type of taste.
@Vvipasha can you share the value for a sample url1
? The html is correct, its likely that the location to the image is incorrect.
@ananth22by7 not seeing any issues with the grey dot patterns, it shows up fine on all zoom levels.
Not sure of the missing piece. Everything else shows up fine, what was done differently for that polygon?
@aritrosaha @Amruthavijaykabadi looking good.
This type of line styling makes it look like you took three different routes. You can see if different line attributes like widths and blurs can improve the visualization.
Loving the explorations!
Want to share a quick tip: You’ll notice that even though places like NID & Platinum city are mapped in OSM, they don’t show up as labels in your map. That’s because the poi_label
layer in this map style only filters a small set of points to show.
You can change this by going to the poi_label
layer in the style, opening Select Data
tab, and removing the filters:
You can always add new layers instead of editing the poi_label
layer, and design the specific labels for apartments & rest of the PoI to get something like below:
I’m using the following filters for the two layers:
Also the grey dotted polygon for an area (the area in front of Platinum City Club House) isn't showing up at all, which is strange because all the areas were showing fine before publishing.
@ananth22by7 You might have missed the properties for this part of the road, or might have missed adding this part of the road. Can you cross check in the Dataset Editor once?
@Vvipasha Try catching up with @jerryjoseph208 & @ananth22by7 and get them to host your project on Github pages like they have done. Then we can help out with the error if you’re still getting it, although from the code you pasted, it seems to be because the space (
) in the code shouldn’t be there:
popup.setLngLat(feature.geometry.coordinates)
.setHTML(feature.properties.source +…
@planemad @rasagy Yep, the zoom issue is gone for us too. Polygon still missing though. I don't recall doing anything different for that polygon but I'll check once again.
@mapschool/infdpg15 please start posting your final
submissions today. Meanwhile @rasagy and I will outline next actions for the group assignment #22
@mapschool/infdpg15
Assignment check-in
The check-in is to help groups with feedback and help with any blockers for the final submission today. Please share the code online prior to the hangout to help troubleshoot problems.
Touch - Sensory Experience Mapping
Exploration
Version_1a https://rawgit.com/jibs23labs/Mapbox/56f5c4aab681e29679aa9ca0a40d2f50eb931d55/test.html
Updates - WIP
Github Pages Map: Smells Of Peenya
Code Link: https://github.com/jerryjoseph208/smells-of-peenya/blob/master/index.html
@ananth22by7 @jerryjoseph208 Have a look at this example of flying to different locations with scrolling: https://www.mapbox.com/mapbox-gl-js/example/scroll-fly-to/
@Vvipasha Have a look at this example if you haven’t already for implementing this idea you shared earlier:
Try working with your batchmates to debug issues or share your code so we can help out. :)
Here’s an example for creating hover on your elements, however it’s slightly javascript heavy: https://www.mapbox.com/mapbox-gl-js/example/hover-styles/
Also have a look at other examples in the User Interaction section, like this example to restrict panning to an area, filter symbols by toggling buttons etc.
Here’s how you can get the arrow along a continuous line added in Dataset Editor:
Or footsteps!
@rasagy Hmm, we had tried that approach with one of the default icons but icons weren't always aligned with the direction of the line, so we didn't proceed. We'll try it again now.
Footsteps is a good idea!
@Amruthavijaykabadi @aritrosaha Here’s one more thing you can play with when you’re making the parallel lines: Change the dashes to go from long to short. See if this approach helps!
Taking the discussion of the Group project to #22.
@rasagy Hey can you share the code snippet to read a geojson file into a variable in order to access the coordinates for each point on map. TIA
@Vvipasha The example I shared does exactly that. Are you getting stuck somewhere? Can you upload your code on github and share some screenshots/errors so we get a better idea?
@rasagy i see in the code , the geojson is written in the same html file. Instead, I am trying to access the features.json file stored in the same folder location and then store the value into the variable. So if you could let me know how do i access the feature.json file into my index.html file and storing in the similar way as mentioned above
@Vvipasha Understood. An easier hack would be to open the geojson file and copy paste the json in your own code, like the example does, if the geojson won’t change/doesn’t need to be in a separate file.
If not, then this page explains different ways to access a geojson file: By running a local server, or by converting it into a .js file by making a small edit. Hope this works if you want to refer to the file.
@Vvipasha like @rasagy mentions you cannot access external JS files without using a server. Its as simple as running the command python -m SimpleHTTPServer
in your terminal at the folder location, and opening the server address in the browser.
A simple tutorial to get you started with a simple web development environment and share your code on Github: https://gist.github.com/planemad/716fd648564ca083921a
@rasagy @planemad .. Thanks for the suggestion and links.
For the update , made few changes as follows -
Next Item actions :
[
](url)
Ps : would commit the code today before lunch time.
@Vvipasha Awesome, looking forward to seeing what you finally come up with!
@Vvipasha this is great. The route labels are nice, wonder if it could be made more expressive, rather than route numbers which does not tell much about the route.
https://amruthavijaykabadi.github.io/taste-journey/
Code: https://github.com/Amruthavijaykabadi/taste-journey/blob/master/index.html
This ticket is for all discussions, doubts and inspiration for this assignment started in #20.
Feel free to ask questions, share screenshots & links of your progress here.