Lines Matching refs:map

34  *            id for the map div
36 * width for the map div
38 * height for the map div
47 // map
57 * Create the map based on the params given.
68 * @return {ol.Map} the created map
84 // find map element location
89 // create map element and add to document
93 /** dynamic map extent. */
98 const map = new ol.Map({
139 visible: mapOpts.baselyr === "cycle map",
140 title: 'cycle map',
255 extent = ol.extent.extend(extent, map.getView().calculateExtent());
312 map.getView().fit(extent, autoZoom_options);
316 map.addControl(new ol.control.Zoom());
317 map.addControl(new ol.control.ScaleLine({bar: true, text: true}));
318 map.addControl(new ol.control.MousePosition({
321 map.addControl(new ol.control.FullScreen({
326 map.addControl(new ol.control.OverviewMap({
332 map.addControl(new ol.control.LayerSwitcher({
350 map.getView().fit(extent, autoZoom_options);
419 map.getView().fit(extent, autoZoom_options);
470 map.getView().fit(extent, autoZoom_options);
492 map.addOverlay(overlay);
505 map.on('singleclick', function (evt) {
506 const selFeature = map.forEachFeatureAtPixel(evt.pixel, function (feature) {
562 map.on('pointermove', function (e) {
563 const pixel = map.getEventPixel(e.originalEvent);
564 const hit = map.hasFeatureAtPixel(pixel);
565 map.getTarget().style.cursor = hit ? 'pointer' : '';
568 return map;
572 * add layers to the map based on the olMapOverlays object.
774 // shrink the map width to fit inside page container
804 // hide the static map image(s) by giving it a print only style
812 // toggle to switch dynamic vs. static map
815 + 'Hide or show the dynamic map</button></div>');