POST
|
No sorry @nita14 it doesn't work, the markers load first and then the layer load on it, and hide. the markers
... View more
03-16-2021
08:39 PM
|
0
|
1
|
1107
|
POST
|
hi, I have several users registered worldwide on my website, i have their country name and their state or address, i want to locate them on map. How to obtain their coordinate from their state name , address is optional. i just want to show user registered from different states.
... View more
03-15-2021
01:13 AM
|
0
|
2
|
702
|
POST
|
Hi Can anyone help, i m looking for the solution but couldn't find any
... View more
03-14-2021
08:35 PM
|
0
|
3
|
1124
|
POST
|
hi i am trying to show markers above webmap combined with a layer of nz boundaries, my markers hide behind this layer, when i use this webmap. i have used gray basemap with a layer added on it in arcgis online webmap. then i called this webmap. i don't know how to show these markers above this webmap. This is my code below require(["esri/core/watchUtils","esri/views/MapView", "esri/WebMap","esri/Graphic","dojo/dom-construct","esri/widgets/Popup","esri/geometry/Point","esri/layers/FeatureLayer", "esri/identity/IdentityManager", "esri/layers/GraphicsLayer", "esri/geometry/support/webMercatorUtils"],
function(watchUtils,MapView, WebMap,Graphic,domConstruct,Popup,Point,FeatureLayer, IdentityManager, GraphicsLayer, webMercatorUtils) {
webmap = WebMap.fromJSON(<?=$basemap_string1 ?>);
/////Start view part
var view = new MapView({
map: webmap,
container: "booking_map",
center: [<?=$map_data_by_country1['long']?>,<?=$map_data_by_country1['lat']?>], // longitude, latitude
zoom:<?=$map_data_by_country1['zoom']-1?>
});
///Set min/max zoom
view.constraints = {
minZoom: <?=$map_data_by_country1['zoom']?>,
maxZoom: <?=$map_data_by_country1['zoom']+3?>
};
/***Create Instance of graphics layer***/
var graphicsLayer = new GraphicsLayer();
/***Add graphics layer to WebMap***/
webmap.addMany([ graphicsLayer]);
/************************************************************
*When view is ready
************************************************************/
view.when(function() {
var getmarkerb = <?php echo json_encode($bcoordinate); ?>;
addMarker(getmarkerb);
});//End view.when
/************************************************************
Add marker on map MarkerGL coming from db
************************************************************/
var addMarker=function(getmarker){
var index = 0;
getmarker.forEach(function(marker){
// settings.accommodation_name[index]=(settings.gettype[index]!="Accomodation")?"":settings.accommodation_name[index];
var markerpt = new Point({
longitude: marker.x,
latitude: marker.y,
spatialReference: { wkid: 4326 }
});
var changedSymbol=changedsymbol('Access Point');
var markergra = new Graphic({
geometry: webMercatorUtils.geographicToWebMercator(markerpt),
symbol: changedSymbol,
attributes: {
newDevelopment: "new marker",
state: "new"
}
});
index++;
graphicsLayer.add(markergra);
});//End loop
}//End addMarker
/************************************************************
Create symbol for marker
************************************************************/
var changedsymbol=function(markertype){
var newurl=changedMarkerSymbol(markertype);
const changedSymbol = {
type: "picture-marker",
url: newurl,
width: "25px",
height: "25px"
};
return changedSymbol;
}
/************************************************************
send url of marker image to calling function
************************************************************/
var changedMarkerSymbol=function(markertype){
switch(markertype){
case "Access Point":
return "<?=HHQL_PLUGIN_URL?>public/images/accesspointnew1.png";
}
}//End changedMarkerSymbol
});///end WebMap
... View more
03-11-2021
03:33 AM
|
0
|
4
|
1194
|
POST
|
hi @ErwinSoekianto i am trying to get state of application in qml console.log(Qt.application.state); but how to make gps work on 2 states active and hidden. when it is active it return 4 and when i close the app with middle button. it return 0, and i have to make gps working in both state. How to do it. Thanks in advance i have enabled the location in capabilities in background modes.
... View more
02-19-2021
01:59 AM
|
0
|
0
|
556
|
POST
|
hi, i have created an application where i am storing current lat long through position source element, i want to know does this element work and save my coordinate even when the application is closed whole time until some condition meet.
... View more
02-12-2021
01:57 AM
|
0
|
2
|
649
|
POST
|
hi i have created an offline / online application. i have saved some images when first time received from server when online, it is working fine in app studio on mobile and on laptops but when i create a build for testing, and i try to close the app completely, and next time i open it, it do not show images saved locally of app. As it is working fine on appstudio, i cannot figured out the problem, anyhelp will be great from community. i am saving path of saved local downloaded images in localdb also.
... View more
02-12-2021
01:28 AM
|
0
|
1
|
399
|
POST
|
hi i want to download mmpk download before going offline dynamically so that user can access the selected area even when it goes offline. As the mmpk file i created for newzealnd is quite big with a linz layer of 900 mb. So i want to dynamically create an mmpk file for the extent every user see for different areas. is it possible?
... View more
02-03-2021
09:45 PM
|
0
|
0
|
355
|
POST
|
// *** Create graphic for boundaries and markers ***//
function createGraphic(geometry, symbol, uname) {
var graphic = ArcGISRuntimeEnvironment.createObject("Graphic");
graphic.geometry = geometry;
graphic.symbol = symbol;
graphic.attributes.attributesJson = {name: uname};
return graphic;
}//end createGraphic // Signal handler for identify graphics overlay
onIdentifyGraphicsOverlayStatusChanged: {
if (identifyGraphicsOverlayStatus === Enums.TaskStatusCompleted) {
if (identifyGraphicsOverlayResult.graphics.length > 0) {
console.log(JSON.stringify(identifyGraphicsOverlayResult.graphics[0].attributes.attributeValue("name")));
calloutData.detail=identifyGraphicsOverlayResult.graphics[0].attributes.attributeValue("name");
callout.accessoryButtonHidden = true;
callout.showCallout();
}
} else if (identifyGraphicsOverlayStatus === Enums.TaskStatusErrored) {
console.log("error");
}
}
... View more
01-31-2021
10:38 PM
|
0
|
0
|
476
|
POST
|
Hi i am trying to get graphic attribute on mouse click , below is my code. Kindly help. Hi @ErwinSoekianto i want to show username like the picture below it do not come from any feature layer but i have to get it from private server to show, here on click so i tried like this and trying to get graphic- attribute or geometry, but it always come undefined, as i have to identify the graphic clicked and then get the username . // *** declare mapview***//
MapView {
id:mapView
property real initialMapRotation: 0
Component.onCompleted: {
mmpk.load();
}
anchors {
left: parent.left
right: parent.right
top: parent.top
bottom: parent.bottom
}
GraphicsOverlay{
id:hunterfreindPathOverlay
}
//! [show callout qml api snippet]
// initialize Callout
calloutData {
location: calloutLocation
detail: "LINZ USER"
}
Callout {
id: callout
calloutData: parent.calloutData
leaderPosition: leaderPositionEnum.Automatic
}
//! [show callout qml api snippet]
// display callout on mouseClicked
onMouseClicked: {
const tolerance = 22;
const returnPopupsOnly = false;
const maximumResults = 1;
if (callout.calloutVisible)
callout.dismiss()
else
{
mapView.identifyGraphicsOverlayWithMaxResults(hunterfreindPathOverlay, mouse.x, mouse.y, tolerance, returnPopupsOnly, maximumResults);
calloutLocation = mouse.mapPoint;
}
}
// Signal handler for identify graphics overlay
onIdentifyGraphicsOverlayStatusChanged: {
if (identifyGraphicsOverlayStatus === Enums.TaskStatusCompleted) {
if (identifyGraphicsOverlayResult.graphics.length > 0) {
console.log("===>"+identifyGraphicsOverlayResult.graphics.geometry);
console.log("===>"+identifyGraphicsOverlayResult.graphics.attribute);
callout.accessoryButtonHidden = true;
callout.showCallout();
}
} else if (identifyGraphicsOverlayStatus === Enums.TaskStatusErrored) {
console.log("error");
}
}
//! [identify graphics api snippet]
}//End Mapview So i tried to add attribute like this and trying to fetch it, but unsuccessful // *** Create graphic for boundaries and markers ***//
function createGraphic(geometry, symbol) {
var graphic = ArcGISRuntimeEnvironment.createObject("Graphic");
graphic.geometry = geometry;
graphic.symbol = symbol;
graphic.attributes.insertAttribute("username", "LINZs");
return graphic;
}//end createGraphic
... View more
01-28-2021
11:00 PM
|
0
|
1
|
503
|
POST
|
Hi @ErwinSoekianto can you help me in this task. I m still stucked in it. I have to look for graphic attribute to identify on a particular overlay on mouse click.
... View more
01-28-2021
07:35 PM
|
0
|
0
|
744
|
POST
|
Hi @ErwinSoekianto i want to show username like the picture below it do not come from any feature layer but i have to get it from private server to show, here on click so i tried like this and trying to get graphic- attribute or geometry, but it always come undefined, as i have to identify the graphic clicked and then get the username . // *** declare mapview***//
MapView {
id:mapView
property real initialMapRotation: 0
Component.onCompleted: {
mmpk.load();
}
anchors {
left: parent.left
right: parent.right
top: parent.top
bottom: parent.bottom
}
GraphicsOverlay{
id:hunterfreindPathOverlay
}
//! [show callout qml api snippet]
// initialize Callout
calloutData {
location: calloutLocation
detail: "LINZ USER"
}
Callout {
id: callout
calloutData: parent.calloutData
leaderPosition: leaderPositionEnum.Automatic
}
//! [show callout qml api snippet]
// display callout on mouseClicked
onMouseClicked: {
const tolerance = 22;
const returnPopupsOnly = false;
const maximumResults = 1;
if (callout.calloutVisible)
callout.dismiss()
else
{
mapView.identifyGraphicsOverlayWithMaxResults(hunterfreindPathOverlay, mouse.x, mouse.y, tolerance, returnPopupsOnly, maximumResults);
calloutLocation = mouse.mapPoint;
}
}
// Signal handler for identify graphics overlay
onIdentifyGraphicsOverlayStatusChanged: {
if (identifyGraphicsOverlayStatus === Enums.TaskStatusCompleted) {
if (identifyGraphicsOverlayResult.graphics.length > 0) {
console.log("===>"+identifyGraphicsOverlayResult.graphics.geometry);
console.log("===>"+identifyGraphicsOverlayResult.graphics.attribute);
callout.accessoryButtonHidden = true;
callout.showCallout();
}
} else if (identifyGraphicsOverlayStatus === Enums.TaskStatusErrored) {
console.log("error");
}
}
//! [identify graphics api snippet]
}//End Mapview So i tried to add attribute like this and trying to fetch it, but unsuccessful // *** Create graphic for boundaries and markers ***//
function createGraphic(geometry, symbol) {
var graphic = ArcGISRuntimeEnvironment.createObject("Graphic");
graphic.geometry = geometry;
graphic.symbol = symbol;
graphic.attributes.insertAttribute("username", "LINZs");
return graphic;
}//end createGraphic
... View more
01-26-2021
09:55 PM
|
0
|
0
|
751
|
POST
|
hi @PaulHaakma_Eagle i agree with your point for refrencing issue. Now It works on mac and iphone but do not work on android and window in offline mode. No error occur, file path consoled is also ok. Don't know what is the problem. i tried that sample also in my code. then same problem persist. Then i replace my mmpk file in that sample. on android phone, it doesn't work on android but work on iphone. Is their any option to create mmpk for both ios and android??
... View more
01-21-2021
11:13 PM
|
0
|
1
|
681
|
POST
|
hi my offline map do not load when i go offline on windows and mobile android and iphone. it only work on mac and only the part which is zoomed get accessed after it goes offline property string assetsPath: "../../../assets/"
property string mapPackageFileName: "new_topoNZ_map.mmpk"
MobileMapPackage {
id: mmpk
path: assetsPath + mapPackageFileName
onLoadStatusChanged: {
if (loadStatus !== Enums.LoadStatusLoaded) {
return;
}
if (mmpk.maps.length < 1) {
return;
}
mapView.map = mmpk.maps[0];
mapView.map.initialViewpoint = viewpoint;
}
onErrorChanged: {
console.log("Mobile Map Package Error: %1 %2".arg(error.message).arg(error.additionalMessage));
}
}
// *** declare mapview***//
MapView {
id:mapView
property real initialMapRotation: 0
Component.onCompleted: {
mmpk.load();
}
anchors {
left: parent.left
right: parent.right
top: parent.top
bottom: parent.bottom
}
}//End Mapview
... View more
01-20-2021
11:20 PM
|
0
|
3
|
724
|
POST
|
hi @StephenQuan4 it worked when we click picture from camera, but how to display image when we select from picturechooser on old iphone. actually everything working fine on new iphone, but an older iphone do not work for picture chooser
... View more
01-20-2021
02:08 AM
|
0
|
0
|
986
|
Title | Kudos | Posted |
---|---|---|
1 | 12-28-2020 10:30 PM | |
1 | 12-27-2020 09:03 PM | |
1 | 05-17-2020 10:15 PM | |
2 | 04-21-2020 10:39 PM | |
3 | 09-09-2020 08:44 PM |
Online Status |
Offline
|
Date Last Visited |
05-23-2021
10:39 AM
|