New answers tagged

2

I believe it is very important what version of OTP you use as the developers are constantly making changes - I've only recently been digging into v0.19 and below are two example work-in-progress wrappers of calling OTP's isochrone API with it. @Ravi has already given you the URL call for the isochrone API, if it doesn't work when you update the Lat/Lon for ...


0

You have several mistakes in your code: You are using a factory method as a constructor. Instead of var foo = new L.featureGroup(), use var foo = L.featureGroup() or var foo = new L.FeatureGroup(). Note lowercase/uppercase! Leaflet coding style favours using factory methods (lowercase, no new). layer is not defined, so you cannot assign ...


1

You can also try the service from http://www.map-wizard.com ... (I have no clue whether that website is also dislayed in English language or only in German like in my browser) They have a platform where multiple users can review and edit the tagging of OSM elements for a certain area from OSM data. Maybe you can ask them via email about your aim.


2

Right Click on the layer name and then left click "Properties", then click the "Transparency" tab. In the box Headed "Transparency Pixel List" click the right hand icon marked with an arrow and a ? ("Add Values from Display"). Then click the black area on the display that you would like transparent. Then click OK. All black area with the same value will ...


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":"*", ...


2

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 ...



Top 50 recent answers are included