New answers tagged

1

To use different queries for different zoom levels you will have to provide queries for each zoom level that you want to use, I think it should be able to query from a different table as well, since we are only defining the database in the kwargs. I have it working using this layer in the cfg "roads": { "allowed origin":"*", ...


1

According to the official tutorial (http://leafletjs.com/examples/geojson.html and http://leafletjs.com/reference.html#icon), you can define your icons before your L.geojson call and set them in your L.geojson function. var smallIcon = new L.Icon({ iconSize: [27, 27], iconAnchor: [13, 27], popupAnchor: [1, -24], iconUrl: 'my-icon.png' ...


6

The order is important. You can't add something to the map before it is defined. Try in this sequence. First define the termini, metroStops var termini = ... ; var metroStops = ...; Then define the basemap, but don't add it to the map yet var osmBase = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png'); var baseMaps = { "OSMBaseLayer": osmBase ...


3

First research how to achieve what you need in either Leaflet or Openlayers 3 using javascript. Then make your map using qgis2web. Export it, and then open your exported index.html in a text editor. You can either add the JS you've learned about into that index file, or put it in its own .js file and import that into index.html with a <script> tag.


0

Have you tried using the Google Maps app URL? like this one: comgooglemaps://?saddr=Google+Inc,+8th+Avenue,+New+York,+NY&daddr=John+F.+Kennedy+International+Airport,+Van+Wyck+Expressway,+Jamaica,+New+York&directionsmode=transit doc link: https://developers.google.com/maps/documentation/ios-sdk/urlscheme?hl=en


0

Thanks for a problem and for the solution to greenlaw, it works fine. Does anybody know how to implement this code (toggle buttons) to app created with Web App Builder? There are a lot of linked js scripts and without knowledge of creating web apps I don't know where to implement this. It doesn't work in index.html. I'm up to create just a floor switcher ...


1

You can also just export the dom element as a pdf/png. Here is a threed that works with openLayers. But should be the same with leaflet Follow here


1

I wonder if there's a configuration that enables export format as pdf. No. Leaflet does nothing of the likes of that. If you want PDFs, you'll need to print PDFs. You can let the users do just that with their web browsers - but if you really need the users to download PDFs, then you can run tools like wkhtmltopdf or a PahtomJS script server-side to ...


0

So I believe I found an easy way to do this. I am using an Edit Widget so that users can easily add or edit points. Within this layer there is a 'status' field that is filled in as 'Pending' by default. The City will have to review any Pending items on a schedule (once a day, week, etc.). The public webmap is set to only display points that have 'Approved' ...


1

The easiest way to achieve this would be to use the GeoForm configurable template from ArcGIS Online. The GeoForm simply reads the fields of a feature service and asks users questions based around the fields. You can configure the questions as you choose and hide fields as necessary. So within the feature service, you could have a 'verified' field that is ...


0

Looks like these are the available basemaps as of v4 https://www.mapbox.com/developers/api/maps/#mapids


0

So if you want to be able to make edits to those layers without exposing editing of the services in the public maps and you are using ArcGIS Online hosted feature services I would recommend you share the layers to a group with shared ownership control enabled (admins of the org can set these up), then invite the members of your org that would be performing ...


3

Unless I am misunderstanding something, the situation shouldn't be that complicated. Create a number of web maps which all refer to the same datasets that are stored in ArcGIS Online. Give edit permissions to the staff, and allow them to make changes. Something like this: These changes will automatically be seen in all webmaps which refer to those ArcGIS ...


1

Another alternative is GeoNode, which has the benefit of serving as a metadata catalog also. We are using it for metadata catalog, layer and map display over the web and WMS server. It integrates PostGis, GeoServer and GeoExplorer. I also heard about QGis Cloud. It looks nice but I've never used it to know if it suits your needs.


1

A number of options exist for creating and hosting your spatial content. Managed Content arcgis.com, mapbox, cartodb, giscloud and mangomap You will get a highly tuned data hosting platform These service will provide different levels for geospatial data hosting, so choose carefully. Self managed HostGIS, AcuGIS, MapServerpro, Cartoview Here you get ...


0

You can use OpenLayers.Control.WMSGetFeatureInfo. This would allow you to capture a click event and use it to poll the WMS endpoint for that specific feature's properties. For highlighting the feature, you might want to consider pulling WFS/vector tiles and rendering them on top of the WMS layer. Using the hover method to pull the currently selected (via ...


2

.leaflet-control-layers-expanded { background: #ff0000; } make sure you add this after leaflet css is loaded so that it overrides the default style in your for example: <style>.leaflet-control-layers-expanded { background: #ff0000; }</style> or else edit leaflet.css directly (line 302 in this example)



Top 50 recent answers are included