MapBox polygon Drawing
I'm using MapBox for my app. I need to draw a polygon around a specific area in my map. and the polygon can draw correctly. but the issue is that when i zooming or moving map region the polygon lines are blinking ore hided from some areas. i try to change width of line but still issue exists.
Screenshot of map - In the screenshot the partially visible white line is polygon. And the orange line is drawn by annotation with image view.
code used for update width of line:
func mapView(_ mapView: MGLMapView, lineWidthForPolylineAnnotation annotation: MGLPolyline) -> CGFloat {
return 10
}
ios swift mapbox polygon
add a comment |
I'm using MapBox for my app. I need to draw a polygon around a specific area in my map. and the polygon can draw correctly. but the issue is that when i zooming or moving map region the polygon lines are blinking ore hided from some areas. i try to change width of line but still issue exists.
Screenshot of map - In the screenshot the partially visible white line is polygon. And the orange line is drawn by annotation with image view.
code used for update width of line:
func mapView(_ mapView: MGLMapView, lineWidthForPolylineAnnotation annotation: MGLPolyline) -> CGFloat {
return 10
}
ios swift mapbox polygon
Hello! Could you share which version of the Mapbox Maps SDK for iOS you are using, as well as whether you are seeing this on devices? If you believe you are seeing a bug in the SDK, please open an issue on Github,
– jmkiley
Nov 12 '18 at 18:52
Hi. Thanks for reply.
– Nikhil Raj
Nov 13 '18 at 6:27
Am using Mapbox-iOS-SDK 4.6.0 . in iPad mini 3 (os - 11.2.2). I think in simulator (iPad Air (11.3))it works properly.
– Nikhil Raj
Nov 13 '18 at 6:31
add a comment |
I'm using MapBox for my app. I need to draw a polygon around a specific area in my map. and the polygon can draw correctly. but the issue is that when i zooming or moving map region the polygon lines are blinking ore hided from some areas. i try to change width of line but still issue exists.
Screenshot of map - In the screenshot the partially visible white line is polygon. And the orange line is drawn by annotation with image view.
code used for update width of line:
func mapView(_ mapView: MGLMapView, lineWidthForPolylineAnnotation annotation: MGLPolyline) -> CGFloat {
return 10
}
ios swift mapbox polygon
I'm using MapBox for my app. I need to draw a polygon around a specific area in my map. and the polygon can draw correctly. but the issue is that when i zooming or moving map region the polygon lines are blinking ore hided from some areas. i try to change width of line but still issue exists.
Screenshot of map - In the screenshot the partially visible white line is polygon. And the orange line is drawn by annotation with image view.
code used for update width of line:
func mapView(_ mapView: MGLMapView, lineWidthForPolylineAnnotation annotation: MGLPolyline) -> CGFloat {
return 10
}
ios swift mapbox polygon
ios swift mapbox polygon
edited Nov 12 '18 at 15:21
Moritz
57.4k19131184
57.4k19131184
asked Nov 12 '18 at 12:03
Nikhil Raj
65
65
Hello! Could you share which version of the Mapbox Maps SDK for iOS you are using, as well as whether you are seeing this on devices? If you believe you are seeing a bug in the SDK, please open an issue on Github,
– jmkiley
Nov 12 '18 at 18:52
Hi. Thanks for reply.
– Nikhil Raj
Nov 13 '18 at 6:27
Am using Mapbox-iOS-SDK 4.6.0 . in iPad mini 3 (os - 11.2.2). I think in simulator (iPad Air (11.3))it works properly.
– Nikhil Raj
Nov 13 '18 at 6:31
add a comment |
Hello! Could you share which version of the Mapbox Maps SDK for iOS you are using, as well as whether you are seeing this on devices? If you believe you are seeing a bug in the SDK, please open an issue on Github,
– jmkiley
Nov 12 '18 at 18:52
Hi. Thanks for reply.
– Nikhil Raj
Nov 13 '18 at 6:27
Am using Mapbox-iOS-SDK 4.6.0 . in iPad mini 3 (os - 11.2.2). I think in simulator (iPad Air (11.3))it works properly.
– Nikhil Raj
Nov 13 '18 at 6:31
Hello! Could you share which version of the Mapbox Maps SDK for iOS you are using, as well as whether you are seeing this on devices? If you believe you are seeing a bug in the SDK, please open an issue on Github,
– jmkiley
Nov 12 '18 at 18:52
Hello! Could you share which version of the Mapbox Maps SDK for iOS you are using, as well as whether you are seeing this on devices? If you believe you are seeing a bug in the SDK, please open an issue on Github,
– jmkiley
Nov 12 '18 at 18:52
Hi. Thanks for reply.
– Nikhil Raj
Nov 13 '18 at 6:27
Hi. Thanks for reply.
– Nikhil Raj
Nov 13 '18 at 6:27
Am using Mapbox-iOS-SDK 4.6.0 . in iPad mini 3 (os - 11.2.2). I think in simulator (iPad Air (11.3))it works properly.
– Nikhil Raj
Nov 13 '18 at 6:31
Am using Mapbox-iOS-SDK 4.6.0 . in iPad mini 3 (os - 11.2.2). I think in simulator (iPad Air (11.3))it works properly.
– Nikhil Raj
Nov 13 '18 at 6:31
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53261797%2fmapbox-polygon-drawing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53261797%2fmapbox-polygon-drawing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Hello! Could you share which version of the Mapbox Maps SDK for iOS you are using, as well as whether you are seeing this on devices? If you believe you are seeing a bug in the SDK, please open an issue on Github,
– jmkiley
Nov 12 '18 at 18:52
Hi. Thanks for reply.
– Nikhil Raj
Nov 13 '18 at 6:27
Am using Mapbox-iOS-SDK 4.6.0 . in iPad mini 3 (os - 11.2.2). I think in simulator (iPad Air (11.3))it works properly.
– Nikhil Raj
Nov 13 '18 at 6:31