|
POST
|
can you provide a little more information? your hyperlink just points to google.com. also, it'd be helpful if you could show/explain what you've already tried, rather than just asking someone else to create a code sample for you from scratch.
... View more
03-02-2016
08:31 AM
|
1
|
3
|
1922
|
|
POST
|
pat's advice in #321 was to use L.esri.featureLayer(). you can find an example of implementing a popup with a featureLayer below. Custom popups | Esri Leaflet if you need additional assistance, it'd be really helpful if you could put together a jsbin or something similar.
... View more
03-01-2016
01:51 PM
|
0
|
4
|
2042
|
|
POST
|
if you snoop the web traffic when running our sample you can see several gridded queries to the feature service which retrieve features in the current map extent and ask for filtered results via the parameter below when we alter the sample to set timeFilterMode to client, the 'time' parameter is no longer included in requests. in this situation, all features (in the current map extent) are retrieved from the service. this means that users are able to manipulate the time extent in the application UI without forcing additional requests to be executed. in either case, panning and zooming will cause the application to fire off additional requests to the server. if you'd like to achieve something resembling the jsapi's snapshot mode, check out this sample.
... View more
02-18-2016
09:14 AM
|
0
|
0
|
743
|
|
POST
|
the easiest thing to do would be to either turn on labels for the layer in the existing service or publish another service with labels.
... View more
01-20-2016
10:27 AM
|
0
|
1
|
2510
|
|
BLOG
|
i'm happy to announce that we just rolled out version 2.0.0-beta.7 of Esri Leaflet (compatible with Leaflet 1.0.0-beta.2). we also pushed updates to the website to show examples of the beta in action, and added documentation for our supported plugins to the API Reference. the best news is that even though a LOT has changed in Leaflet (and Esri Leaflet) under the hood, the public facing API is more or less the same, so upgrading from 1.0.0 should be a breeze. still skrred? thats okay too cause we zapped a couple bugs and released 1.0.2 as well. if you see any problems, the code (and website) are on github! happy new year y'all!
... View more
01-01-2016
11:49 AM
|
1
|
0
|
2213
|
|
POST
|
please review our documentation and samples and let me know if you have any specific questions.
... View more
12-28-2015
09:35 PM
|
1
|
0
|
1940
|
|
POST
|
i'm not sure what to tell you, they are drawing for me here.
... View more
12-28-2015
05:26 PM
|
1
|
2
|
1940
|
|
POST
|
all of the layer types made accessible from our esri-leaflet plugins are compatible with all of the leaflet layers included in the core library and those made available via other plugins. as an alternative, it'd also be really straightforward to load a hosted esri service based on world countries L.esri.featureLayer({
url: "//services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/World_Countries_(Generalized)/FeatureServer/0"
}).addTo(map);
... View more
12-28-2015
04:46 PM
|
1
|
4
|
1940
|
|
POST
|
it looks like the jsapi is just adding a unique throwaway parameter '_ts' and setting it with a timestamp to dirty up their requests. we could do the same thing here: var params = {
_ts: Date().now(),
bbox: [sw.x, sw.y, ne.x, ne.y].join(','),
// ...
}; if you can log an issue in our repository in github, i'd be happy to help.
... View more
12-22-2015
03:13 PM
|
0
|
0
|
621
|
|
POST
|
you're definitely on the right track. in the package.json just replace: "build": "./scripts/build.js",
// with
"build": "node ./scripts/build.js", Check out the previously logged bug here for more information.
... View more
12-01-2015
11:48 AM
|
1
|
0
|
986
|
|
POST
|
Hi Chris, your threads stand a lot better chance of generating feedback if you work harder to articulate exactly what research you've already done and what you've already tried. what you're asking can be broken up into several parts: 1) how do I know that someone has clicked text on my page? the good news here if that this question is not peculiar to GIS web development, its pure HTML/JavaScript, so there are a lot of different resources out there available to you! this first step can be broken up even further: a) how would I create an event listener for text that comes from plain old static <html>? b) once i can do that, do I need to do anything differently if the text was inserted via arbitrary JavaScript? before you start worrying about recentering the map, stick with something straightforward (like calling 'alert('yes!');') 2) once I know that someone has clicked on my item of interest, how do I take advantage of that opportunity to set the extent of my map? what would I need to have available? this part actually is a GIS web dev question, but the documentation is there to help you, and will hopefully explain how to dig into a particular L.geoJson feature and use its properties and methods to manipulate the map (using its methods). the good news here is that if you forget about the first part of your problem temporarily, you can Google different combinations of search terms to research the Leaflet components in play to see what you'll have to do differently than what you already did when someone clicks a button. before you figure out how to listen for someone clicking on text, you can work on passing what you think will be available (and useful) via a global variable to a trigger you're comfortable with (like just calling your own method manually) after the individual problems are solved, it'll be time to hook everything up together. and if you get stuck along the way, you'll have a much more specific (hopefully searchable) question. Hope all that makes sense. the tl;dr is: all problems are more solvable when they are as small as possible. internet searches for help with small, discrete questions yield dramatically more relevant results than requests for assistance achieving a final outcome. stick with it! it gets easier with practice.
... View more
11-13-2015
03:19 PM
|
1
|
0
|
939
|
|
POST
|
no problem at all. i figured the server was up to the challenge, otherwise your jQuery call would have bombed out too
... View more
11-05-2015
09:25 AM
|
0
|
0
|
1363
|
|
POST
|
unfortunately this is kind of a 'you cant have your cake and eat it too' situation because you can't POST across domains when the server you're trying to reach doesn't support CORS. you have two options. 1. if the print server actually supports CORS, you can accept the default constructor option and the plugin will automatically switch to a POST when the request is longer than 2000 characters { useCors: true } 2. if either the print server (or client browser) doesn't support CORS, you'll need to fall back on proxying the request to accomodate the security restriction. see the conceptual article here for more information.
... View more
11-04-2015
03:39 PM
|
0
|
2
|
1363
|
|
BLOG
|
or (john finally learns why the heck we bother publishing esri leaflet as a package on npm) as a geographer turned hack web developer, it sometimes feels to me like there's an endless barrage of programming buzzwords going around to try and keep track of. Angular, React, Ember, Node, Bootstrap, Backbone, Grunt, Gulp, AMD, UMD, ES6, etc. etc. etc. I probably spend more time trying to figure out what's worth learning (is it already over? is it popular? is it really popular? is it even relevant to me?) than i do actually learning how they work. all that said, i know some of you may be suffering from framework overload too so consider this the disclaimer 'yes, this is another blog that introduces a buzzword to beginners'. as long as i'm being honest, i need to get one more thing off my chest. i've been contributing to Esri's open source plugins for leaflet for a long time now and i never really had any idea why we publish them on http://www.npmjs.org until recently. for me browserify is what helped me finally figure it out. first things first. what is 'npm'? npm is a package manager that helps people share JavaScript code. this video explains what it is and how it works far better than i could https://docs.npmjs.com/getting-started/what-is-npm and what is 'Node.js' i'm going to throw out another one-liner here and punt to an external link for more info, but Node.js is a way of executing javascript code on a web server, as opposed to the place its typically run (the browser). What is Node.JS and Why Should I Care? [Web Development] until recently, for me thats where it ended. i thought Node.js and npm were one in the same. since i'm pretty much a hack, and i don't often find myself writing the backend of websites, i thought there wasn't much i could do with Nodes.js/npm. and as such, i spent a long time completely clueless as to why we put the code on npm when we published new versions of esri leaflet. for me, getting familiar with browserify made it all click into place. if you'd interested in learning more, check out my sample in Esri's Developer Support repository to see browserify in action and play around with it yourself. developer-support/README.md at master · Esri/developer-support · GitHub if you're not, thats okay too!
... View more
10-14-2015
12:29 PM
|
1
|
0
|
1953
|
|
POST
|
the click event for your cityLayer isn't triggered because you're adding it to the map before (and therefore underneath) the countries.
... View more
10-14-2015
08:34 AM
|
1
|
1
|
1476
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|