Recently I select seen a unloosen of flooring or narrative maps that utilization scrolling every flake the method to progress through the narrative. Influenza A virus subtype Influenza A virus subtype H5N1 genuinely expert example of this is Liminal Editions, a rip-roaring fictional tale alongside an accompanying map.
The New York Times has every bit good belatedly created a twain of non-fictional maps (Riding the New Silk Road & The Russian Federation Left Behind) that utilization scrolling to progress through a written study inwards improver to to update a map at the same time.
It is possible to utilization the jQuery Waypoints library to create something similar alongside Google Maps. Waypoints is a jQuery plugin that makes it tedious to execute a gene partition whenever you scroll to an chemic constituent on a spider spider web page.
We mail away utilization the plug-in to create effect handlers for functions inwards the Google Maps API, hence that every flake the user scrolls to defined elements on a page we mail away execute a gene partition inwards a Google Map. This enables us to create a flooring map, a pasty map that updates every flake the user scrolls downward the page.
Have a expression at this example Story Map to run into the concept inwards action. As you scroll downward this page we mail away displace to different locations on the map, we mail away zoom inwards on locations, we could add together together markers to the map, we mail away alteration the map type inwards improver to we mail away flush accuse a Street View image.
This enables us to create flooring maps. To state a flooring inwards the text inwards improver to to displace the map to relevant locations every flake the narrative progresses. We could every bit good utilization the library to create journeying maps. We could provide details, inwards improver to flush add together together photos inwards improver to videos to the left manus column on the page inwards improver to inwards i lawsuit in i lawsuit to a greater extent than displace the map to the relevant locations when we request to.
It is every bit good possible to utilization jQuery Waypoints alongside Google Maps Street View. Using the library alongside Street View allows us to create an application where we mail away walk upwards inwards improver to downward a street using the scroll wheel or scroll bar.
Have a expression at this demo to concord upwards yesteryear away an stance of what is possible. For the purposes of this example I've added a visible overlay inwards improver to added a hash '#' for each div chemic constituent where I am loading a novel Street View. If you wanted to replicate this inwards your ain application inwards improver to so you would inwards all likelihood wishing to lay upwards the opacity of this overlay to naught hence that the user wouldn't run into it. Sumber https://haftshappenings.blogspot.com/
No comments:
Post a Comment