POST
|
Found resolution, we can pass the data type (image) and format(png;base64) to the url property. const weatherSymbol = { type: 'picture-marker', url: "data:image/png;base64," + base64ImageString, contentType: 'image/png', width: '32px', height: '32px', xoffset: -10, yoffset: 24 };
... View more
03-20-2018
03:03 PM
|
2
|
0
|
1206
|
POST
|
const weatherSymbol = { type: 'picture-marker', url: base64StringConent, contentType: 'image/png', width: '32px', height: '32px', yoffset: '24px' }; Here my requirement is to load images which are received from back-end services (say REST service). Which will receive a base64 decoded string. Can we encode this value and assign to PictureMarkerSymbol for dynamic image generation?
... View more
03-20-2018
11:07 AM
|
0
|
1
|
1795
|
POST
|
Hello, I have couple of questions here. 1. Do anyone has idea on when ArcGIS Map version 4.x will be released with toolbar compoments? 2. Currently I am working on AngularJS 4.0, so if I move back to ArcGIs 3.x does it will be compatible with Angular 2? Thanks and Regards, Umesh
... View more
05-17-2017
07:00 AM
|
0
|
0
|
516
|
POST
|
Hello everyone, I was trying to create a angular 4 application as part of POC, I was able to show esri map, but was not able to display the polygon in the map. Its not throwing any error. Below is the code which I had used. Could you let me know what's wrong in this? export class EsriMapComponent implements OnInit {
map: __esri.Map;
mapView: __esri.MapView;
polyLine: __esri.Polyline;
@ViewChild('mapViewNode') private mapViewEl: ElementRef;
constructor(private esriLoader: EsriLoaderService) {
}
public ngOnInit() {
// only load the ArcGIS API for JavaScript when this component is loaded
return this.esriLoader.load({
// use a specific version of the JSAPI
url: 'https://js.arcgis.com/4.3/'
}).then(() => {
// load the needed Map and MapView modules from the JSAPI
this.esriLoader.loadModules([
'esri/Map',
'esri/views/MapView',
'esri/geometry/Polyline',
'esri/symbols/SimpleLineSymbol',
"dojo/domReady!"
]).then(([
Map,
MapView,
Polyline,
SimpleLineSymbol
]) => {
let mapProperties: __esri.MapProperties = {
basemap: 'hybrid'
};
let map: __esri.Map = new Map(mapProperties);
let mapViewProperties: __esri.MapViewProperties = {
// create the map view at the DOM element in this component
container: this.mapViewEl.nativeElement,
// supply additional options
//center: pointProperties,
center:[-98, 49.5],
zoom: 13,
map: map // property shorthand for object literal
};
this.mapView = new MapView(mapViewProperties);
this.polyLine=new Polyline({
paths: [
[-111.30, 52.68],
[-98, 49.5],
[-93.94, 29.89]
]
});
});
});
}
... View more
05-12-2017
02:19 PM
|
0
|
1
|
1304
|
Title | Kudos | Posted |
---|---|---|
2 | 03-20-2018 03:03 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|