
The Map Context Frame is an interesting paradigm "to back upwardly (interactive) map navigation yesteryear placing contextual information some a (interactive) map". When using interactive maps users frequently zoom inwards together with out on the map to determine their location. For illustration users mightiness zoom out on a map to confirm their relative seat inwards damage of nearby towns, cities together with other good known landmarks. The Map Context Frame is an aide to navigation which is designed to furnish contextual spatial cues inwards the map frame so that users don't take away to zoom inwards together with out to determine their location.
The Map Context Frame provides a lay out of contextual spatial cues some the border of the map showing the direction together with distance to locations exterior of the electrical flow map view. The spatial cues shown are unlike at unlike zoom levels. When zoomed out to a grade which shows province labels on the map the spatial cues inwards the context frame volition betoken towards countries exterior the electrical flow map bounds. When you lot zoom inwards on the map the context cues volition modify from pointing towards other countries to instead exhibit towns together with cities exterior the electrical flow map bounds.
You tin strength out read to a greater extent than most the role of the Map Context Frame together with its methodology on its GitHub page together with inwards the interrogation newspaper A Context Frame for Interactive Maps (PDF).
The Map Context Frame organization champaign must involve some variety of ranking to attain upwardly one's hear which place are the most of import together with thus should survive shown inwards the context frame. One constituent inwards this ranking algorithm could survive distance. If I'm searching some inside a U.S. province at a zoom grade which shows a few towns on the map together with then the context frame could exhibit me the nearby towns & cities non inwards the electrical flow map view. Another constituent inwards a ranking algorithm could survive population size. Again if I'm searching inside a province the context frame could exhibit me nearby towns non inwards the electrical flow map persuasion only likewise some of the biggest cities together with the province working capital missive of the alphabet (even if they are farther away).
The demo map doesn't exhibit local points of interest. This is likely because this is where it gets to a greater extent than difficult. If you lot are zoomed correct inwards on a place inwards the demo map the context frame all the same shows you lot towns together with cities. Whereas at this grade of zoom nearby neighborhoods would likely survive a greater aide to navigation. As would nearby points of interest, such every bit stations, museums together with other good know local landmarks.
An choice to using a Map Context Frame alongside an algorithm determining the context locations is to attain a map alongside predetermined context locations. For illustration if you lot convey a map on your website showing the place of your component together with then you lot mightiness desire to determine for yourself which locations to exhibit inwards the context frame. For illustration you lot mightiness desire the context frame to betoken towards together with exhibit the distance to nearby stations, bus-stops together with cafes. If that is the instance together with then you lot mightiness similar Leaflet EdgeMarker.
Leaflet EdgeMarker is a plugin for the Leaflet map library which creates a map context frame alongside arrows pointing to predetermined locations exterior of the electrical flow view. If you lot utilization Leaflet EdgeMarker you lot take away to determine for yourself the locations which the arrows inwards the context frame volition betoken to. Here is a demo of the Leaflet EdgeMarker inwards action.