Coder Social home page Coder Social logo

arcgis-devlabs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arcgis-devlabs's Issues

Imprimir un mapa

En la API 4.8 nos permite activar un widget para imprimir nuestro mapa, en el podemos elegir el formato, dimensiones etc lo cual es bastante bueno, pero mi problema es que necesito generar un JPG de forma automática, que al apretar un botón lo genere sin la necesidad de ingresar parámetros a un formulario y me devuelva la ruta de la imagen generada. ¿Es posible?
Estoy investigando PrintTask para ver si logro configurar las dimensiones, formato, etc pero no me resulta.

Estoy viendo la doc en esta URL
https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-PrintTask.html#execute

desde ya agradezco a un alma caritativa que me pueda ayudar
saludos!

seleccionar un polígono

Hola buenas tardes
Llevo mucho tiempo usando la API de arcgis 3.4 y ahora quiero cambiar a la versión 4.7 pero no logro poder seleccionar un polígono con el mouse con esta versión.
En la versión 3.4 creaba un esri.tasks.QueryTask() en donde especificaba el layer en particular con el cual quería trabajar ejemplo:

queryTask = new esri.tasks.QueryTask("http://miservidor.com:6080/arcgis/rest/services/mapa_uno/MapServer/12")

de esta forma con un esri.tasks.Query() podía especificar qué dato obtener de dicha capa

query = new esri.tasks.Query();
query.returnGeometry = true;
query.outFields = ["IDE"];

despues con esta funciona en el evento onclick obtenía el dato y dibujaba el poligono

function executeQueryTask(evt) {
  
  query.geometry = evt.mapPoint;
  
  queryTask.execute(query, function(fset) {
    if (fset.features.length === 1) {
      showFeature(fset.features[0],evt);
    } else if (fset.features.length !== 0) {
      showFeatureSet(fset,evt);
    }
  });
}
function showFeature(feature,evt) {
  map.graphics.clear();
  feature.setSymbol(symbol);
  var var_IDE = feature.attributes["IDE"];
  
  map.graphics.add(feature);
  alert(var_identif);
  return false;
}

esto es posible hacerlo en la versión 4.7? hasta ahora no logro conseguirlo

desde ya doy las gracias por cualquier ayuda
saludos!

Ejemplo 9: Pintar objetos en 3D

Según he visto el tamaño del symbol en 3d responde al nivel de zoom y el del symbol en 2d no.

Mediante que parámetros podemos controlar este comportamiento?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.