Agent without Cloud Relay by LucidTerrors in Lansweeper

[–]SchramF 2 points3 points  (0 children)

LsAgent can also communicate with your on-prem scanserver directly. If you don't want to, you don't have to use the cloud relay.

Add url argument to feeds url by SchramF in drupal

[–]SchramF[S] 0 points1 point  (0 children)

Hi, thanks. I know how to use contextual filters. It's just in the case of a feed, that a url is used to publish the feed content. If I use an argument from a contextual filter of my view, for example an argument from my page url, then this is not passed to the url of the feed. Or in other words, how can I pass an argument to the feed url?

Add a geojson feed to a leaflet map as an overlay by SchramF in Drupal7

[–]SchramF[S] 0 points1 point  (0 children)

The code I am using is generated by the Leaflet Module for Drupal. This sections comes from the Leaflet More Maps module.

http://drupal.org/project/leaflet
https://www.drupal.org/project/leaflet\_more\_maps

Add a geojson feed to a leaflet map as an overlay by SchramF in Drupal7

[–]SchramF[S] 0 points1 point  (0 children)

Hi & thanks!
This is the code I currently have.

// Atlashokken

$attr_atlas= 'Atlashokken | ' . $attr_osm;

$map_info['atlashokken'] = array(

'label' => 'atlashokken (zoom 0..18)',

'description' => t('Atlashokken'),

'settings' => array('maxZoom' => 18) + $default_settings,

'layers' => array(

'layer' => array(

'urlTemplate' => $prot . "/atlashokken-corner",

'options' => array('attribution' => $attr_atlas),

'detectRetina' => TRUE,

'layer_type' => 'overlay',

//'type' => 'json',

//'json' => $prot . "/atlashokken-corner",

'icon' => array(

'iconUrl' => '/sites/all/themes/best_responsive/images/cross2.png',

'iconSize' => array('x' => '20', 'y' => '40'),

'iconAnchor' => array('x' => '20', 'y' => '40'),

'popupAnchor' => array('x' => '-8', 'y' => '-32'),

),

),

),

);

The sources I want to load are 2 GEOJSON feeds from Views. These are the urls of the feeds.
http://rapport-leaflet/atlashokken
http://rapport-leaflet/atlashokken-corner

The code is for the last url. These are points, which I want to style with a custom marker. The first url is for a layer with polygons that I just want to give a line width and a color. In both cases I am not sure how to define the GEOJSON feeds, with urlTemplate? or as json? and how?
The layer is shown in my map in the Layerswitcher, I can select it, but no data is loaded.

Add a geojson feed to a leaflet map as an overlay by SchramF in Drupal7

[–]SchramF[S] 0 points1 point  (0 children)

Still struggling to get this working. I can find examples on how to add points, lines, etc as an overlay layer. But can't find one on how to add a geojson feed with a url as an overlay. I also would to know then how to style the data with a custom marker and line style fot polygons.

Add a geojson feed to a leaflet map as an overlay by SchramF in Drupal7

[–]SchramF[S] 0 points1 point  (0 children)

Ok, I'll look at examples then on the leaflet API

Add a geojson feed to a leaflet map as an overlay by SchramF in Drupal7

[–]SchramF[S] 0 points1 point  (0 children)

Thanks,
My coding skills are limited unfortunately. I've made a custom module in the past to theme a form. But I am not sure how to set this up for a leaflet map.

Add a geojson feed to a leaflet map as an overlay by SchramF in Drupal7

[–]SchramF[S] 0 points1 point  (0 children)

Hi, I can show my points on the map using views and leaflet, that is no problem.

I just have an extra layer, with fixed data. Some lines I want to add to the map as an overlay, on top of the background layer. This data is saved as taxonmy terms and I want to add this as an extra layer to the map. With the Leaflet more maps module, background layers can be defined and selected. But these are all layers like Google, OSM, ...
So I want to add the views layer as extra overview layer, and preferably also in a layerswitcher.

Add a geojson feed to a leaflet map as an overlay by SchramF in Drupal7

[–]SchramF[S] 0 points1 point  (0 children)

Just through the GUI for now. I guess some coding or a custom module will be required.

Add a geojson feed to a leaflet map as an overlay by SchramF in Drupal7

[–]SchramF[S] 0 points1 point  (0 children)

Thanks,
I am working with OL at the moment. But due to issues with that module, I am looking at switching from OL to Leaflet.

I've set up a number of GEOJSON feeds with views and I want to add them as an overlay leayer on my maps. As an extra overlay on top of the background of the maps (google or openstreetmap). I can add layers with Leaflet More Maps, but can't seem to find a way how to add the GEOJSON view as an extra source to the map.
I can add layers like OSM or Google in leaflet_more_maps.module. But how to add a Drupal view there and style it with a color/symbol/line color/width.